Attribute._Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) Attribute._Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) Attribute._Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) Method

定義

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

 virtual void System.Runtime.InteropServices._Attribute.GetIDsOfNames(Guid % riid, IntPtr rgszNames, System::UInt32 cNames, System::UInt32 lcid, IntPtr rgDispId) = System::Runtime::InteropServices::_Attribute::GetIDsOfNames;
void _Attribute.GetIDsOfNames (ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
Sub GetIDsOfNames (ByRef riid As Guid, rgszNames As IntPtr, cNames As UInteger, lcid As UInteger, rgDispId As IntPtr) Implements _Attribute.GetIDsOfNames

參數

riid
Guid Guid Guid

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

rgszNames
IntPtr IntPtr IntPtr

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

cNames
UInt32 UInt32 UInt32

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

lcid
UInt32 UInt32 UInt32

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

rgDispId
IntPtr IntPtr IntPtr

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

實作

例外狀況

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

備註

這個方法會從 unmanaged 程式碼,是用於存取 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.

適用於