ObjectManager.GetObject Method (Int64)


Returns the object with the specified object ID.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

public virtual object GetObject(
	long objectID


Type: System.Int64

The ID of the requested object.

Return Value

Type: System.Object

The object with the specified object ID if it has been previously stored or null if no such object has been registered.

Exception Condition

The objectID parameter is less than or equal to zero.

An object can be registered and issued an object ID with a call to the RegisterObject method.

.NET Framework
Available since 1.1
Return to top