ServiceDescriptionBaseCollection.GetKey(Object) 方法
定义
返回与通过引用传递的值关联的键的名称。Returns the name of the key associated with the value passed 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
要为其返回键名的对象。An object for which to return the name of the key.
返回
空引用。A null reference.
注解
此方法的默认实现旨在由派生类重写,以便返回与参数关联的键的名称 value 。The default implementation of this method is intended to be overridden by a derived class in order to return the name of the key associated with the value parameter. 默认实现 Nothing 在 Visual Basic) 中返回 null (。The default implementation returns null (Nothing in Visual Basic). 此受保护方法只能通过此类或派生类访问。This protected method is accessible only through this class or a derived class.