Creates a new instance of the ObjectStore class based on the specified parameters. Before calling the Save method, you must also set additional properties for the object store. DisplayName, SymbolicName, JNDIDataSource, and JNDIXADataSource are required at a minimum. Use property accessor methods (for example, Set_DisplayName) to set the property values. The ObjectStore object is created when the returned instance is saved.


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

Syntax

Visual Basic (Declaration)
Public Shared Function CreateInstance( _ 
   ByVal domain As IDomain,  _ 
   ByVal admins As String(),  _ 
   ByVal users As String() _ 
) As IObjectStore
C#
public static IObjectStore CreateInstance(
   IDomain domain,
   string[] admins,
   string[] users
)
C++
public:
 static IObjectStore CreateInstance(
   IDomain domain,
   array<String>^ admins,
   array<String>^ users
)
J#
public static IObjectStore CreateInstance(
   IDomain domain,
   string[] admins,
   string[] users
)
JScript
public static  function CreateInstance(
   domain : IDomain,
   admins : String[],
   users : String[]
) : IObjectStore

Parameters

domain
The FileNet P8 domain for which this instance is scoped.
admins
An array of Strings representing the administrative users and/or groups who can access this object store; for example, "Domain Admins". Cannot be empty.
users
An array of Strings representing the security principal names of the users and/or groups who can access this object store; for example, "Domain Users". Cannot be empty.

Return Value

An ObjectStore.

See Also