IVsContainedLanguageStaticEventBinding::AddStaticEventBinding Method (String^, String^, String^, String^)

 

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)

int AddStaticEventBinding(
	String^ pszClassName,
	String^ pszUniqueMemberID,
	String^ pszObjectName,
	String^ pszNameOfEvent
)

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.

From singlefileeditor.idl:

HRESULT AddStaticEventBinding(
   [in] LPCWSTR pszClassName,
   [in] LPCWSTR pszUniqueMemberID,
   [in] LPCWSTR pszObjectName,
   [in] LPCWSTR pszNameOfEvent
);
Return to top
Show: