MemberInfo._MemberInfo.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) Method

Definition

將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。Maps a set of names to a corresponding set of dispatch identifiers.

 virtual void System.Runtime.InteropServices._MemberInfo.GetIDsOfNames(Guid % riid, IntPtr rgszNames, System::UInt32 cNames, System::UInt32 lcid, IntPtr rgDispId) = System::Runtime::InteropServices::_MemberInfo::GetIDsOfNames;
void _MemberInfo.GetIDsOfNames (ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
abstract member System.Runtime.InteropServices._MemberInfo.GetIDsOfNames : Guid * nativeint * uint32 * uint32 * nativeint -> unit
override this.System.Runtime.InteropServices._MemberInfo.GetIDsOfNames : Guid * nativeint * uint32 * uint32 * nativeint -> unit
Sub GetIDsOfNames (ByRef riid As Guid, rgszNames As IntPtr, cNames As UInteger, lcid As UInteger, rgDispId As IntPtr) Implements _MemberInfo.GetIDsOfNames

Parameters

riid
Guid

保留供未來使用。Reserved for future use. 必須是 IID_NULL。Must be IID_NULL.

rgszNames
IntPtr

要對應之傳入的名稱陣列。Passed-in array of names to be mapped.

cNames
UInt32

要對應的名稱計數。Count of the names to be mapped.

lcid
UInt32

用於解譯名稱的地區設定內容。The locale context in which to interpret the names.

rgDispId
IntPtr

呼叫端配置的陣列,用於接收對應於名稱的 ID。Caller-allocated array which receives the IDs corresponding to the names.

Implements

Exceptions

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

Remarks

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

Applies to