Share via


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。

適用於