IVsContainedLanguageStaticEventBinding.AddStaticEventBinding Method
Binds a static event to the specified member.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'Declaration
Function AddStaticEventBinding ( _
pszClassName As String, _
pszUniqueMemberID As String, _
pszObjectName As String, _
pszNameOfEvent As String _
) As Integer
int AddStaticEventBinding(
string pszClassName,
string pszUniqueMemberID,
string pszObjectName,
string pszNameOfEvent
)
int AddStaticEventBinding(
[InAttribute] String^ pszClassName,
[InAttribute] String^ pszUniqueMemberID,
[InAttribute] String^ pszObjectName,
[InAttribute] String^ pszNameOfEvent
)
abstract AddStaticEventBinding :
pszClassName:string *
pszUniqueMemberID:string *
pszObjectName:string *
pszNameOfEvent:string -> int
function AddStaticEventBinding(
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 is to handle 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 AddStaticEventBinding(
[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.