Attribute._Attribute.GetTypeInfoCount(UInt32) Method

Definition

擷取物件提供的類型資訊介面數目 (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);
abstract member System.Runtime.InteropServices._Attribute.GetTypeInfoCount : uint32 -> unit
override this.System.Runtime.InteropServices._Attribute.GetTypeInfoCount : uint32 -> unit
Sub GetTypeInfoCount (ByRef pcTInfo As UInteger) Implements _Attribute.GetTypeInfoCount

Parameters

pcTInfo
UInt32

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

Implements

Exceptions

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

Remarks

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

Applies to