Attribute._Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) 方法

定義

擷取物件的類型資訊,可以用來取得介面的類型資訊。Retrieves the type information for an object, which can be used to get the type information for an interface.

 virtual void System.Runtime.InteropServices._Attribute.GetTypeInfo(System::UInt32 iTInfo, System::UInt32 lcid, IntPtr ppTInfo) = System::Runtime::InteropServices::_Attribute::GetTypeInfo;
void _Attribute.GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);
Sub GetTypeInfo (iTInfo As UInteger, lcid As UInteger, ppTInfo As IntPtr) Implements _Attribute.GetTypeInfo

參數

iTInfo
UInt32

要傳回的類型資訊。The type information to return.

lcid
UInt32

類型資訊的地區設定識別項。The locale identifier for the type information.

ppTInfo
IntPtr

接收要求的類型資訊物件的指標。Receives a pointer to the requested type information 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::GetTypeInfo 的詳細資訊,請參閱 MSDN Library。For more information about IDispatch::GetTypeInfo, see the MSDN Library.

適用於