ITypeInfo.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 方法

適用於