MemberInfo._MemberInfo.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) 方法

定义

将一组名称映射为对应的一组调度标识符。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);
Sub GetIDsOfNames (ByRef riid As Guid, rgszNames As IntPtr, cNames As UInteger, lcid As UInteger, rgDispId As IntPtr) Implements _MemberInfo.GetIDsOfNames

参数

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.

实现

异常

此方法称为使用 COM IDispatch 接口的后期绑定。The method is called late-bound using the COM IDispatch interface.

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。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.

适用于