Szerkesztés

Megosztás a következőn keresztül:


IRunningObjectTable.GetObject(IMoniker, Object) Method

Definition

Returns the registered object if the supplied object name is registered as running.

public:
 int GetObject(System::Runtime::InteropServices::ComTypes::IMoniker ^ pmkObjectName, [Runtime::InteropServices::Out] System::Object ^ % ppunkObject);
public int GetObject (System.Runtime.InteropServices.ComTypes.IMoniker pmkObjectName, out object ppunkObject);
abstract member GetObject : System.Runtime.InteropServices.ComTypes.IMoniker * obj -> int
Public Function GetObject (pmkObjectName As IMoniker, ByRef ppunkObject As Object) As Integer

Parameters

pmkObjectName
IMoniker

A reference to the moniker to search for in the Running Object Table (ROT).

ppunkObject
Object

When this method returns, contains the requested running object. This parameter is passed uninitialized.

Returns

An HRESULT value that indicates the success or failure of the operation.

Remarks

For more information, see IRunningObjectTable::GetObject method.

Applies to