Activator._Activator.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) Activator._Activator.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) Activator._Activator.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) Method

定义

将一组名称映射为对应的一组调度标识符。Maps a set of names to a corresponding set of dispatch identifiers.

 virtual void System.Runtime.InteropServices._Activator.GetIDsOfNames(Guid % riid, IntPtr rgszNames, System::UInt32 cNames, System::UInt32 lcid, IntPtr rgDispId) = System::Runtime::InteropServices::_Activator::GetIDsOfNames;
void _Activator.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 _Activator.GetIDsOfNames

参数

riid
Guid Guid Guid

留待将来使用。Reserved for future use. 必须为 IID_NULL。Must be IID_NULL.

rgszNames
IntPtr IntPtr IntPtr

要映射的名称的传入数组。The passed-in array of names to map.

cNames
UInt32 UInt32 UInt32

要映射的名称的计数。The count of the names to map.

lcid
UInt32 UInt32 UInt32

要在其中解释名称的区域设置上下文。The locale context in which to interpret the names.

rgDispId
IntPtr IntPtr IntPtr

调用方分配的数组,用于接收与名称对应的 ID。The caller-allocated array that receives the IDs corresponding to the names.

实现

异常

不支持使用 COM IDispatch 接口的后期绑定访问。Late-bound access using the COM IDispatch interface is not supported.

注解

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

适用于