ContextAttribute.Name 属性

定义

获取上下文属性的名称。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 virtual property System::String ^ Name { System::String ^ get(); };
public virtual string Name { get; }
public virtual string Name { [System.Security.SecurityCritical] get; }
member this.Name : string
[<get: System.Security.SecurityCritical>]
member this.Name : string
Public Overridable ReadOnly Property Name As String

属性值

上下文属性的名称。

实现

属性

注解

此属性的默认实现提供 AttributeName 属性名称。

继承者说明

不得在任何用户派生类中重写当前属性。 当前 Equals(Object) 实现和 GetHashCode() 方法实现取决于默认功能。 如果要为扩展 ContextAttribute 和重写属性的 Name 类提供高级行为,则还必须重写默认实现 Equals(Object)GetHashCode() 方法。

适用于