PropertyInformation.Name Property


Gets the name of the object that corresponds to a configuration attribute.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public string Name { get; }

Property Value

Type: System.String

The name of the PropertyInformation object.

The following code example demonstrates how to use the LineNumber property. This code example is part of a larger example provided for the PropertyInformation class.

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

.NET Framework
Available since 2.0
Return to top