[This is preliminary documentation and is subject to change.]

Gets the agent with the specified world ID. If the agent cannot be found, this method returns null.

Namespace: Clarion
Assembly: ClarionLibrary (in ClarionLibrary.dll) Version: 6.1.1.0 (6.1.1.0)

Syntax

C#
public static Agent GetAgent(
	Guid worldID
)

Parameters

worldID
Type: System..::..Guid
The world ID of the agent to get

Return Value

The agent with the specified world ID or null if the agent cannot be found

Exceptions

ExceptionCondition
System..::..InvalidOperationExceptionIf the singleton world instance has not been initialized

See Also