ComEventsHelper.Remove(Object, Guid, Int32, Delegate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes a delegate from the invocation list of events originating from a COM object.
public:
static Delegate ^ Remove(System::Object ^ rcw, Guid iid, int dispid, Delegate ^ d);
[System.Security.SecurityCritical]
public static Delegate Remove (object rcw, Guid iid, int dispid, Delegate d);
public static Delegate? Remove (object rcw, Guid iid, int dispid, Delegate d);
public static Delegate Remove (object rcw, Guid iid, int dispid, Delegate d);
[<System.Security.SecurityCritical>]
static member Remove : obj * Guid * int * Delegate -> Delegate
static member Remove : obj * Guid * int * Delegate -> Delegate
Public Shared Function Remove (rcw As Object, iid As Guid, dispid As Integer, d As Delegate) As Delegate
Parameters
- rcw
- Object
The COM object the delegate is attached to.
- iid
- Guid
The identifier of the source interface used by the COM object to trigger events.
- dispid
- Int32
The dispatch identifier of the method on the source interface.
- d
- Delegate
The delegate to remove from the invocation list.
Returns
The delegate that was removed from the invocation list.
- Attributes
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.