UCOMITypeInfo.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
要回傳姓名(或多個名字)成員的身分證。
- rgBstrNames
- String[]
成功返回時,包含與該成員相關的姓名(或多個名稱)。
- cMaxNames
- Int32
陣列的 rgBstrNames 長度。
- pcNames
- Int32
成功返回時,陣列中的名稱 rgBstrNames 數量。
備註
欲了解更多資訊 ITypeInfo::GetNames,請參閱MSDN圖書館。