ServiceDescriptionBaseCollection.GetKey(Object) 方法

定義

傳回與以傳址 (By Reference) 方式傳遞的數值相關聯的索引鍵名稱。

protected:
 virtual System::String ^ GetKey(System::Object ^ value);
protected virtual string GetKey (object value);
abstract member GetKey : obj -> string
override this.GetKey : obj -> string
Protected Overridable Function GetKey (value As Object) As String

參數

value
Object

要傳回索引鍵名稱的物件。

傳回

String

null 參考。

備註

此方法的預設實作是要由衍生類別覆寫,以便傳回與 value 參數相關聯的索引鍵名稱。 預設實作會在 Visual Basic) 中傳回 null (Nothing 。 這個受保護的方法只能透過這個類別或衍生類別來存取。

適用於