The classId parameter is the identifier for the type of class to be instantiated. The identifier can be specified as the class name constant or the symbolic name for the class. It can also be null, in which case an object of the base class type is returned. Specifying an ID (GUID) for this instance via the id parameter is optional; if one is not specified, an ID for the new object is automatically generated.
When this object is created, an associated VersionSeries object is also created to hold the versions of this object. Optionally specifying an ID (GUID) via the versionSeriesId parameter will assign an ID to the newly created VersionSeries object; if one is not specified, an ID for the new VersionSeries object is automatically generated.
The reservationType parameter specifies a ReservationType constant to indicate the type of reservation for the new object (collaborative or exclusive) or whether the reservation type is the same as the default object store setting. A collaborative reservation is a reservation that any user with the appropriate permissions can check in, modify, or delete. An exclusive reservation is a reservation that only the user who creates the reservation can check in, modify, or delete.
Assembly: FileNet.Api (in FileNet.Api.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function CreateInstance ( _ os As IObjectStore, _ classId As String, _ id As Id, _ versionSeriesId As Id, _ reservationType As ReservationType _ ) As IXMLPropertyMappingScript |
C# |
---|
public static IXMLPropertyMappingScript CreateInstance( IObjectStore os, string classId, Id id, Id versionSeriesId, ReservationType reservationType ) |
Visual C++ |
---|
public: static IXMLPropertyMappingScript^ CreateInstance( IObjectStore^ os, String^ classId, Id^ id, Id^ versionSeriesId, ReservationType reservationType ) |
JavaScript |
---|
FileNet.Api.Core.XMLPropertyMappingScript.createInstance = function(os, classId, id, versionSeriesId, reservationType); |
Parameters
- os
- Type: FileNet.Api.Core..::.IObjectStore
The ObjectStore object in which this class instance is located.
- classId
- Type: System..::.String
The identifier for the type of class to be instantiated.
- id
- Type: FileNet.Api.Util..::.Id
An optional ID to assign to the new object.
- versionSeriesId
- Type: FileNet.Api.Util..::.Id
An optional ID to assign to the new VersionSeries object.
- reservationType
- Type: FileNet.Api.Constants..::.ReservationType
The type of reservation for the new object.