共用方式為


IVsContainedLanguageStaticEventBinding.RemoveStaticEventBinding Method

Removes the event binding from the specified member.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'宣告
Function RemoveStaticEventBinding ( _
    pszClassName As String, _
    pszUniqueMemberID As String, _
    pszObjectName As String, _
    pszNameOfEvent As String _
) As Integer
int RemoveStaticEventBinding(
    string pszClassName,
    string pszUniqueMemberID,
    string pszObjectName,
    string pszNameOfEvent
)
int RemoveStaticEventBinding(
    [InAttribute] String^ pszClassName, 
    [InAttribute] String^ pszUniqueMemberID, 
    [InAttribute] String^ pszObjectName, 
    [InAttribute] String^ pszNameOfEvent
)
abstract RemoveStaticEventBinding : 
        pszClassName:string * 
        pszUniqueMemberID:string * 
        pszObjectName:string * 
        pszNameOfEvent:string -> int 
function RemoveStaticEventBinding(
    pszClassName : String, 
    pszUniqueMemberID : String, 
    pszObjectName : String, 
    pszNameOfEvent : String
) : int

Parameters

  • pszClassName
    Type: System.String
    [in] The fully qualified name of the class the member resides in.
  • pszUniqueMemberID
    Type: System.String
    [in] The unique ID of the member that handles the event.
  • pszObjectName
    Type: System.String
    [in] The name of the object that contains the event.

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT RemoveStaticEventBinding(
   [in] LPCWSTR pszClassName,
   [in] LPCWSTR pszUniqueMemberID,
   [in] LPCWSTR pszObjectName,
   [in] LPCWSTR pszNameOfEvent
);

.NET Framework Security

See Also

Reference

IVsContainedLanguageStaticEventBinding Interface

Microsoft.VisualStudio.TextManager.Interop Namespace