Attribute._Attribute.GetTypeInfoCount(UInt32) 方法

定義

擷取物件提供的類型資訊介面數目 (0 或 1)。Retrieves the number of type information interfaces that an object provides (either 0 or 1).

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

參數

pcTInfo
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.

備註

這個方法是用來從非受控程式碼存取 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.

適用於