Retrieves an instance of the Domain class by the specified name. The Connection object you pass in to this method provides information necessary to establish communication with the server.

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 server.

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

ToggleSyntax

Visual Basic (Declaration)
Public Shared Function GetInstance ( _
	conn As IConnection, _
	name As String _
) As IDomain
C#
public static IDomain GetInstance(
	IConnection conn,
	string name
)
Visual C++
public:
static IDomain^ GetInstance(
	IConnection^ conn, 
	String^ name
)
JavaScript
FileNet.Api.Core.Domain.getInstance = function(conn, name);

Parameters

conn
Type: FileNet.Api.Core..::.IConnection
A Connection object for establishing the connection to the server.
name
Type: System..::.String
The name of domain to retrieve. If null, this method retrieves the default domain.

NOTE: The server does not currently check a non-null name argument for correctness, but it might be checked in future releases. Therefore, you should either use the correct domain name or pass null to get the default domain as determined by the Connection object.

Return Value

A reference to a Domain object.

ToggleSee Also