次の方法で共有


IVsContainedLanguageStaticEventBinding.AddStaticEventBinding Method

Definition

Binds a static event to the specified member.

public:
 int AddStaticEventBinding(System::String ^ pszClassName, System::String ^ pszUniqueMemberID, System::String ^ pszObjectName, System::String ^ pszNameOfEvent);
public:
 int AddStaticEventBinding(Platform::String ^ pszClassName, Platform::String ^ pszUniqueMemberID, Platform::String ^ pszObjectName, Platform::String ^ pszNameOfEvent);
int AddStaticEventBinding(std::wstring const & pszClassName, std::wstring const & pszUniqueMemberID, std::wstring const & pszObjectName, std::wstring const & pszNameOfEvent);
public int AddStaticEventBinding (string pszClassName, string pszUniqueMemberID, string pszObjectName, string pszNameOfEvent);
abstract member AddStaticEventBinding : string * string * string * string -> int
Public Function AddStaticEventBinding (pszClassName As String, pszUniqueMemberID As String, pszObjectName As String, pszNameOfEvent As String) As Integer

Parameters

pszClassName
String

[in] The fully qualified name of the class the member resides in.

pszUniqueMemberID
String

[in] The unique ID of the member that is to handle the event.

pszObjectName
String

[in] The name of the object that contains the event.

pszNameOfEvent
String

[in] The name of the event.

Returns

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  
);  

Applies to