GenericRepositoryExtensionsCreateItemT Method

Relativity Services API

Note: This API is now obsolete.

Creates the specified Artifact object and adds it to the current Repository.

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

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


Type: kCura.Relativity.Client.RepositoriesGenericRepositoryT
The GenericRepository of type T to which the new Artifact belongs.
Type: T
The Artifact to be created.

Type Parameters

A class inheriting from Artifact and providing a parameterless constructor.

Return Value

Type: Int32
The ArtifactID of the new Artifact of type T.

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