次の方法で共有


IVsContainedLanguageStaticEventBinding.RemoveStaticEventBinding Method

Definition

Removes the event binding from the specified member.

public:
 int RemoveStaticEventBinding(System::String ^ pszClassName, System::String ^ pszUniqueMemberID, System::String ^ pszObjectName, System::String ^ pszNameOfEvent);
public:
 int RemoveStaticEventBinding(Platform::String ^ pszClassName, Platform::String ^ pszUniqueMemberID, Platform::String ^ pszObjectName, Platform::String ^ pszNameOfEvent);
int RemoveStaticEventBinding(std::wstring const & pszClassName, std::wstring const & pszUniqueMemberID, std::wstring const & pszObjectName, std::wstring const & pszNameOfEvent);
public int RemoveStaticEventBinding (string pszClassName, string pszUniqueMemberID, string pszObjectName, string pszNameOfEvent);
abstract member RemoveStaticEventBinding : string * string * string * string -> int
Public Function RemoveStaticEventBinding (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 handles 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 RemoveStaticEventBinding(  
   [in] LPCWSTR pszClassName,  
   [in] LPCWSTR pszUniqueMemberID,  
   [in] LPCWSTR pszObjectName,  
   [in] LPCWSTR pszNameOfEvent  
);  

Applies to