IRunningObjectTable::Register Method (Int32, Object^, IMoniker^)
Registers that the supplied object has entered the running state.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- grfFlags
-
Type:
System::Int32
Specifies whether the Running Object Table's (ROT) reference to punkObject is weak or strong, and controls access to the object through its entry in the ROT.
- punkObject
-
Type:
System::Object^
A reference to the object being registered as running.
- pmkObjectName
-
Type:
System.Runtime.InteropServices.ComTypes::IMoniker^
A reference to the moniker that identifies punkObject.
Return Value
Type: System::Int32A value that can be used to identify this ROT entry in subsequent calls to Revoke or NoteChangeTime.
ROT references to punkObject (weak and strong) determine object lifetime. For more information, see the documentation for the COM IRunningObjectTable::Register method in the MSDN library.
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1