Constructs an instance of the Realm class by the specified connection and symbolic name.

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)

Syntax

Visual Basic (Declaration)
Public Shared Function GetInstance( _ 
   ByVal connection As IConnection,  _ 
   ByVal name As String _ 
) As IRealm
C#
public static IRealm GetInstance(
   IConnection connection,
   string name
)
C++
public:
 static IRealm GetInstance(
   IConnection connection,
   String name
)
J#
public static IRealm GetInstance(
   IConnection connection,
   string name
)
JScript
public static  function GetInstance(
   connection : IConnection,
   name : String
) : IRealm

Parameters

connection
A Connection object for establishing the connection to the Content Engine server.
name
The symbolic name of the class instance to construct. Can be null, in which case the method returns the same Realm object as would be returned by a call to FetchCurrent(connection, filter).

Return Value

A reference to an object of the requested type.

See Also