PropertyInformation.LineNumber Property

Definition

Gets the line number in the configuration file related to the configuration attribute.

public:
 property int LineNumber { int get(); };
public int LineNumber { get; }
member this.LineNumber : int
Public ReadOnly Property LineNumber As Integer

Property Value

A line number of the configuration file.

Examples

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 LineNumber property.
Console.WriteLine("LineNumber: {0}", propertyItem.LineNumber);
' Display the LineNumber property.
Console.WriteLine("LineNumber: {0}", propertyItem.LineNumber)

Remarks

The line number associated with the source configuration file. Zero is returned when there is no source configuration file.

Applies to