ITypeInfo.GetNames(Int32, String[], Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索具有与指定函数 ID 对应的指定成员 ID(或属性或方法的名称及其参数)的变量。
public:
void GetNames(int memid, cli::array <System::String ^> ^ rgBstrNames, int cMaxNames, [Runtime::InteropServices::Out] int % pcNames);
public void GetNames(int memid, string[] rgBstrNames, int cMaxNames, out int pcNames);
abstract member GetNames : int * string[] * int * int -> unit
Public Sub GetNames (memid As Integer, rgBstrNames As String(), cMaxNames As Integer, ByRef pcNames As Integer)
参数
- memid
- Int32
要返回其名称(或名称)的成员的 ID。
- rgBstrNames
- String[]
此方法返回时,包含与成员关联的名称(或名称)。 此参数未初始化传递。
- cMaxNames
- Int32
数组的 rgBstrNames 长度。
- pcNames
- Int32
此方法返回时,包含数组中 rgBstrNames 的名称数。 此参数未初始化传递。
注解
有关详细信息,请参阅 ITypeInfo::GetNames 方法。