Partager via


IRunningObjectTable.GetObject(IMoniker, Object) Méthode

Définition

Retourne l’objet inscrit si le nom d’objet fourni est inscrit comme étant en cours d’exécution.

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

Paramètres

pmkObjectName
IMoniker

Référence au moniker à rechercher dans la table d’objets en cours d’exécution (ROT).

ppunkObject
Object

Lorsque cette méthode retourne, contient l’objet en cours d’exécution demandé. Ce paramètre est passé non initialisé.

Retours

Valeur HRESULT qui indique la réussite ou l’échec de l’opération.

Remarques

Pour plus d’informations, consultez la méthode IRunningObjectTable ::GetObject.

S’applique à