Activator._Activator.GetTypeInfoCount(UInt32) Activator._Activator.GetTypeInfoCount(UInt32) Activator._Activator.GetTypeInfoCount(UInt32) Method

定义

检索对象提供的类型信息接口的数量(0 或 1)。Retrieves the number of type information interfaces that an object provides (either 0 or 1).

 virtual void System.Runtime.InteropServices._Activator.GetTypeInfoCount([Runtime::InteropServices::Out] System::UInt32 % pcTInfo) = System::Runtime::InteropServices::_Activator::GetTypeInfoCount;
void _Activator.GetTypeInfoCount (out uint pcTInfo);
Sub GetTypeInfoCount (ByRef pcTInfo As UInteger) Implements _Activator.GetTypeInfoCount

参数

pcTInfo
UInt32 UInt32 UInt32

此方法返回时包含一个用于接收对象提供的类型信息接口数量的位置指针。When this method returns, contains a pointer to a location that receives the number of type information interfaces provided by the object. 此参数未经初始化即被传递。This parameter is passed uninitialized.

实现

异常

不支持使用 COM IDispatch 接口的后期绑定访问。Late-bound access using the COM IDispatch interface is not supported.

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。This method is used to access managed classes from unmanaged code, and should not be called from managed code. 有关IDispatch::GetTypeInfoCount的详细信息,请参阅 MSDN library。For more information about IDispatch::GetTypeInfoCount, see the MSDN Library.

适用于