Attribute._Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) 方法
定义
将一组名称映射为对应的一组调度标识符。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
留待将来使用。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 that receives the IDs corresponding to the names.
实现
异常
不支持使用 COM IDispatch
接口的后期绑定访问。Late-bound access using the COM IDispatch
interface is not supported.
注解
此方法用于从非托管代码访问托管类,不应从托管代码调用。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.