返回静态已处理事件的集合。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Function GetStaticEventBindingsForObject ( _
pszClassName As String, _
pszObjectName As String, _
<OutAttribute> ByRef pcMembers As Integer, _
<OutAttribute> ByRef ppbstrEventNames As IntPtr, _
<OutAttribute> ByRef ppbstrDisplayNames As IntPtr, _
<OutAttribute> ByRef ppbstrMemberIDs As IntPtr _
) As Integer
int GetStaticEventBindingsForObject(
string pszClassName,
string pszObjectName,
out int pcMembers,
out IntPtr ppbstrEventNames,
out IntPtr ppbstrDisplayNames,
out IntPtr ppbstrMemberIDs
)
int GetStaticEventBindingsForObject(
[InAttribute] String^ pszClassName,
[InAttribute] String^ pszObjectName,
[OutAttribute] int% pcMembers,
[OutAttribute] IntPtr% ppbstrEventNames,
[OutAttribute] IntPtr% ppbstrDisplayNames,
[OutAttribute] IntPtr% ppbstrMemberIDs
)
abstract GetStaticEventBindingsForObject :
pszClassName:string *
pszObjectName:string *
pcMembers:int byref *
ppbstrEventNames:IntPtr byref *
ppbstrDisplayNames:IntPtr byref *
ppbstrMemberIDs:IntPtr byref -> int
function GetStaticEventBindingsForObject(
pszClassName : String,
pszObjectName : String,
pcMembers : int,
ppbstrEventNames : IntPtr,
ppbstrDisplayNames : IntPtr,
ppbstrMemberIDs : IntPtr
) : int
参数
pszClassName
类型:String[in] 类的完全限定名。
pszObjectName
类型:String[in] 包含事件完全限定的对象名称。
pcMembers
类型:Int32%[out] 在 ppbstrEventNames、 ppbstrDisplayNames和 ppbstrMemberIDs 参数返回事件处理程序的数目在指定的列表返回。
ppbstrEventNames
类型:IntPtr%[out] 返回包含事件处理程序名称的列表。
ppbstrDisplayNames
类型:IntPtr%[out] 返回包含显示名称。事件处理程序的列表。
ppbstrMemberIDs
类型:IntPtr%[out] 返回包含事件成员 ID 的列表。
返回值
类型:Int32
如果成功,则返回; S_OK否则,返回错误代码。
备注
COM 签名
从 singlefileeditor.idl:
HRESULT GetStaticEventBindingsForObject(
[in] LPCWSTR pszClassName,
[in] LPCWSTR pszObjectName,
[out] int* pcMembers,
[out] BSTR** ppbstrEventNames,
[out] BSTR** ppbstrDisplayNames,
[out] BSTR** ppbstrMemberIDs
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。