ContextAttribute.Name ContextAttribute.Name ContextAttribute.Name ContextAttribute.Name Property

定义

获取上下文特性的名称。Gets the name of the context attribute.

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

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

属性值

上下文特性的名称。The name of the context attribute.

实现

注解

此属性的默认实现提供AttributeName作为属性名称。Default implementation of this property provides AttributeName as the property name.

继承者说明

当前属性不得在任何用户派生类中重写。The current property must not be overridden in any user derived class. 当前Equals(Object)GetHashCode()方法实现依赖于默认功能。The current Equals(Object) and GetHashCode() method implementations depend on the default functionality. 如果要为ContextAttribute扩展和Name重写属性的类提供高级行为, 则还必须重写Equals(Object)GetHashCode()方法的默认实现。If you wish to provide advanced behavior for a class extending the ContextAttribute and override the Name property, you have to also override the default implementation of the Equals(Object) and GetHashCode() methods.

适用于