Type._Type.GetTypeInfoCount(UInt32) Type._Type.GetTypeInfoCount(UInt32) Type._Type.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._Type.GetTypeInfoCount([Runtime::InteropServices::Out] System::UInt32 % pcTInfo) = System::Runtime::InteropServices::_Type::GetTypeInfoCount;
void _Type.GetTypeInfoCount (out uint pcTInfo);
Sub GetTypeInfoCount (ByRef pcTInfo As UInteger) Implements _Type.GetTypeInfoCount

參數

pcTInfo
UInt32 UInt32 UInt32

指向接收物件提供的類型資訊介面數目的位置。Points to a location that receives the number of type information interfaces provided by the object.

實作

例外狀況

不支援使用 COM IDispatch 介面進行晚期繫結的存取。Late-bound access using the COM IDispatch interface is not supported.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to 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.

適用於