Creates a new instance of the ReferentialContainmentRelationship class, to be persisted in the specified object store, based on the AutoUniqueName and DefineSecurityParentage and class name settings.

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, _
	uniqueName As AutoUniqueName, _
	defineSecurityParentage As DefineSecurityParentage _
) As IReferentialContainmentRelationship
C#
public static IReferentialContainmentRelationship CreateInstance(
	IObjectStore os,
	string className,
	AutoUniqueName uniqueName,
	DefineSecurityParentage defineSecurityParentage
)
Visual C++
public:
static IReferentialContainmentRelationship^ CreateInstance(
	IObjectStore^ os, 
	String^ className, 
	AutoUniqueName uniqueName, 
	DefineSecurityParentage defineSecurityParentage
)
JavaScript
FileNet.Api.Core.ReferentialContainmentRelationship.createInstance = function(os, className, uniqueName, defineSecurityParentage);

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
A String containing the symbolic name, or ID of the class for this instance.
uniqueName
Type: FileNet.Api.Constants..::.AutoUniqueName
An AutoUniqueName constant object indicating whether to detect and resolve naming collisions of containment names.
defineSecurityParentage
Type: FileNet.Api.Constants..::.DefineSecurityParentage
A DefineSecurityParentage constant object indicating whether the SecurityFolder property of the referenced containee (the Head property) is automatically set to the referenced container (the Tail property).

Return Value

An object reference to a new instance of this class.

ToggleSee Also