Constructs an instance of the Realm class by the specified connection and ID. This method does not verify the existence of the requested object on the server; it simply returns a local reference without making a round-trip to the server. The local reference is not affiliated with an object of this class type until you perform a function on the object (for example, fetch a property value) that causes a round-trip to the Content Engine server.

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

ToggleSyntax

Visual Basic (Declaration)
Public Shared Function GetInstance ( _
	connection As IConnection, _
	id As Id _
) As IRealm
C#
public static IRealm GetInstance(
	IConnection connection,
	Id id
)
Visual C++
public:
static IRealm^ GetInstance(
	IConnection^ connection, 
	Id^ id
)
JavaScript
FileNet.Api.Core.Realm.getInstance = function(connection, id);

Parameters

connection
Type: FileNet.Api.Core..::.IConnection
A Connection object for establishing the connection to the Content Platform Engine server.
id
Type: FileNet.Api.Util..::.Id
The ID (GUID) of the object to retrieve.

Return Value

A reference to an object of the requested type.

ToggleSee Also