Share via


PropertyInformation.Name 属性

定义

获取与配置特性相对应的对象的名称。

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

属性值

PropertyInformation 对象的名称。

示例

下面的代码示例演示如何使用 LineNumber 属性。 此代码示例是为 PropertyInformation 类提供的一个更大示例的一部分。

// Display the Name property.
Console.WriteLine("Name: {0}", propertyItem.Name);
' Display the Name property.
Console.WriteLine("Name: {0}", propertyItem.Name)

适用于