IRunningObjectTable.Register(Int32, Object, IMoniker) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Enregistre que l’objet fourni a entré l’état en cours d’exécution.
public:
int Register(int grfFlags, System::Object ^ punkObject, System::Runtime::InteropServices::ComTypes::IMoniker ^ pmkObjectName);
public int Register(int grfFlags, object punkObject, System.Runtime.InteropServices.ComTypes.IMoniker pmkObjectName);
abstract member Register : int * obj * System.Runtime.InteropServices.ComTypes.IMoniker -> int
Public Function Register (grfFlags As Integer, punkObject As Object, pmkObjectName As IMoniker) As Integer
Paramètres
- grfFlags
- Int32
Spécifie si la référence ROT (Running Object Table) à punkObject laquelle est faible ou forte, et contrôle l’accès à l’objet via son entrée dans le ROT.
- punkObject
- Object
Référence à l’objet en cours d’exécution.
- pmkObjectName
- IMoniker
Référence au moniker qui identifie punkObject.
Retours
Valeur qui peut être utilisée pour identifier cette entrée ROT dans les appels suivants à Revoke(Int32) ou NoteChangeTime(Int32, FILETIME).
Remarques
Les références ROT à punkObject (faible et forte) déterminent la durée de vie de l’objet. Pour plus d’informations, consultez la méthode IRunningObjectTable ::Register.