Returns the object with ID objectID, or a null reference (in Visual Basic Nothing) if such an object is not found.
[Visual Basic] Overridable Public Function GetObject( _ ByVal objectID As Long _ ) As Object [C#] public virtual object GetObject( long objectID ); [C++] public: virtual Object* GetObject( __int64 objectID ); [JScript] public function GetObject( objectID : long ) : Object;
The object with ID objectID if it has been previously remembered, via a call to RegisterObject, or a null reference (Nothing) if no such object has been registered.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | The objectID parameter is less than or equal to 0. |
ObjectManager Class | ObjectManager Members | System.Runtime.Serialization Namespace