GenericRepositoryExtensionsUpdateItemT Method

Relativity Services API

Note: This API is now obsolete.

Updates the specified Artifact.

Namespace:  kCura.Relativity.Client.Repositories.Extensions
Assembly:  kCura.Relativity.Client (in kCura.Relativity.Client.dll) Version: 17.0.1.1 588f15fd7550dbf54835f3417a0142d4ea37dbb5
Syntax

[ObsoleteAttribute("Refer to UpdateSingle method.")]
public static T UpdateItem<T>(
	this GenericRepository<T> repo,
	T artifact
)
where T : new(), Artifact

Parameters

repo
Type: kCura.Relativity.Client.RepositoriesGenericRepositoryT
The GenericRepository holding the Artifact to be updated.
artifact
Type: T
The Artifact to be updated.

Type Parameters

T
A class inheriting from Artifact and providing a parameterless constructor.

Return Value

Type: T
The updated Artifact.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GenericRepositoryT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference