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.

Note: Provide values for the admins and users parameters. Otherwise, the Content Engine will derive default values based on permissions on the P8 Domain, and these values might not be correct for your environment. See Object store access rights.

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

ToggleSyntax

Visual Basic (Declaration)
Public Shared Function CreateInstance ( _
	domain As IDomain, _
	admins As String(), _
	users As String() _
) As IObjectStore
C#
public static IObjectStore CreateInstance(
	IDomain domain,
	string[] admins,
	string[] users
)
Visual C++
public:
static IObjectStore^ CreateInstance(
	IDomain^ domain, 
	array<String^>^ admins, 
	array<String^>^ users
)
JavaScript
FileNet.Api.Core.ObjectStore.createInstance = function(domain, admins, users);

Parameters

domain
Type: FileNet.Api.Core..::.IDomain
The FileNet P8 domain for which this instance is scoped.
admins
Type: array< System..::.String >[]()[]
An array of Strings representing the administrative users and/or groups who can access this object store; for example, "Domain Admins".
users
Type: array< System..::.String >[]()[]
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".

Return Value

An ObjectStore.

ToggleSee Also