Creates a new instance of the subclassble CmAbstractSearchResult class, to be persisted in the specified object store, based on the class and GUID.

The created object does not yet exist in an object store. To persist the created object to the object store, you must explicitly call the save method, or commit the object via a batch operation. Both approaches cause a round-trip to the server.

Namespace:  FileNet.Api.Core
Assembly:  FileNet.Api (in FileNet.Api.dll)

ToggleSyntax

Visual Basic (Declaration)
Public Shared Function CreateInstance ( _
	os As IObjectStore, _
	className As String, _
	id As Id _
) As ICmAbstractSearchResult
C#
public static ICmAbstractSearchResult CreateInstance(
	IObjectStore os,
	string className,
	Id id
)
Visual C++
public:
static ICmAbstractSearchResult^ CreateInstance(
	IObjectStore^ os, 
	String^ className, 
	Id^ id
)
JavaScript
FileNet.Api.Core.CmAbstractSearchResult.createInstance = function(os, className, id);

Parameters

os
Type: FileNet.Api.Core..::.IObjectStore
The ObjectStore object for the object store in which this class instance is to be located.
className
Type: System..::.String
The name of the class. This may not be null or an empty string.
id
Type: FileNet.Api.Util..::.Id
An ID object representing the GUID for this class.

Return Value

An object reference to a new instance of this class.

ToggleSee Also