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
'Déclaration
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.
- pszNameOfEvent
Type: System.String
[in] The name of 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.