GenericRepositoryExtensionsReadItemT Method

Relativity Services API

Note: This API is now obsolete.

Reads 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 ReadSingle method.")]
public static T ReadItem<T>(
	this GenericRepository<T> repo,
	int artifactID,
	IEnumerable<FieldValue> fields
)
where T : new(), Artifact

Parameters

repo
Type: kCura.Relativity.Client.RepositoriesGenericRepositoryT
The GenericRepository holding the Artifact to be read.
artifactID
Type: SystemInt32
The ID of the Artifact to be read.
fields
Type: System.Collections.GenericIEnumerableFieldValue
The fields to read from the Artifact.

Type Parameters

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

Return Value

Type: T
An Artifact of type T containing the selected fields.

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