IRunningObjectTable.Register(Int32, Object, IMoniker) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Registra che l'oggetto fornito ha immesso lo stato di esecuzione.
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
Parametri
- grfFlags
- Int32
Specifica se il riferimento ROT (Running Object Table) a punkObject è debole o sicuro e controlla l'accesso all'oggetto tramite la relativa voce in ROT.
- punkObject
- Object
Riferimento all'oggetto registrato come in esecuzione.
- pmkObjectName
- IMoniker
Riferimento al moniker che identifica punkObject.
Valori restituiti
Valore che può essere utilizzato per identificare questa voce ROT nelle chiamate successive a Revoke(Int32) o NoteChangeTime(Int32, FILETIME).
Commenti
I riferimenti ROT a punkObject (deboli e sicuri) determinano la durata dell'oggetto. Per altre informazioni, vedere Metodo IRunningObjectTable::Register.