ObjectManager.GetObject(Int64) ObjectManager.GetObject(Int64) ObjectManager.GetObject(Int64) ObjectManager.GetObject(Int64) Method

定義

傳回具有所指定物件 ID 的物件。Returns the object with the specified object ID.

public:
 virtual System::Object ^ GetObject(long objectID);
public virtual object GetObject (long objectID);
abstract member GetObject : int64 -> obj
override this.GetObject : int64 -> obj
Public Overridable Function GetObject (objectID As Long) As Object

參數

objectID
Int64 Int64 Int64 Int64

要求物件的 ID。The ID of the requested object.

傳回

如果先前已經儲存,則為具有指定之物件 ID 的物件,但如果尚未註冊這類物件,則為 nullThe object with the specified object ID if it has been previously stored or null if no such object has been registered.

例外狀況

objectID 參數小於或等於零。The objectID parameter is less than or equal to zero.

備註

物件可以註冊,並發出呼叫的物件識別碼RegisterObject方法。An object can be registered and issued an object ID with a call to the RegisterObject method.

適用於