UCOMITypeInfo.GetNames(Int32, String[], Int32, Int32) 方法

定义

检索具有与指定函数 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 ,请参阅 MSDN library。

适用于