Creates a new instance of the Link class, to be persisted in the specified object store, based on the class ID 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)

Syntax

Visual Basic (Declaration)
Public Shared Function CreateInstance( _ 
   ByVal os As IObjectStore,  _ 
   ByVal classId As String,  _ 
   ByVal id As Id _ 
) As ILink
C#
public static ILink CreateInstance(
   IObjectStore os,
   string classId,
   Id id
)
C++
public:
 static ILink CreateInstance(
   IObjectStore os,
   String classId,
   Id id
)
J#
public static ILink CreateInstance(
   IObjectStore os,
   string classId,
   Id id
)
JScript
public static  function CreateInstance(
   os : IObjectStore,
   classId : String,
   id : Id
) : ILink

Parameters

os
The ObjectStore object for the object store in which this class instance is to be located.
classId
A String containing the symbolic name, or ID of the class for this instance.
id
An
 Copy Code
ID
object representing the GUID for this class.

Return Value

An object reference to a new instance of this class.

See Also