绑定静态事件对指定的成员。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
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
参数
pszClassName
类型:String[in] 类的完全限定名该成员位于。
pszUniqueMemberID
类型:String[in] 是处理事件成员的唯一 ID。
pszObjectName
类型:String[in] 包含事件对象的名称。
pszNameOfEvent
类型:String[in] 事件的名称。
返回值
类型:Int32
如果成功,则返回; S_OK否则,返回错误代码。
备注
COM 签名
从 singlefileeditor.idl:
HRESULT AddStaticEventBinding(
[in] LPCWSTR pszClassName,
[in] LPCWSTR pszUniqueMemberID,
[in] LPCWSTR pszObjectName,
[in] LPCWSTR pszNameOfEvent
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。