CustomAttributeBuilder._CustomAttributeBuilder.GetTypeInfoCount(UInt32) 方法

定義

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

 virtual void System.Runtime.InteropServices._CustomAttributeBuilder.GetTypeInfoCount([Runtime::InteropServices::Out] System::UInt32 % pcTInfo) = System::Runtime::InteropServices::_CustomAttributeBuilder::GetTypeInfoCount;
void _CustomAttributeBuilder.GetTypeInfoCount (out uint pcTInfo);
abstract member System.Runtime.InteropServices._CustomAttributeBuilder.GetTypeInfoCount : uint32 -> unit
override this.System.Runtime.InteropServices._CustomAttributeBuilder.GetTypeInfoCount : uint32 -> unit
Sub GetTypeInfoCount (ByRef pcTInfo As UInteger) Implements _CustomAttributeBuilder.GetTypeInfoCount

參數

pcTInfo
UInt32

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

實作

例外狀況

方法使用 COM IDispatch 介面進行晚期繫結呼叫。The method is called late-bound using the COM IDispatch interface.

備註

這個方法是用來從非受控碼存取 managed 類別,不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code, and should not be called from managed code. 如需詳細資訊,請參閱 IDispatch:: GetTypeInfoCountFor more information, see IDispatch::GetTypeInfoCount.

適用於