Share via


SourceCodePosition Class

Specifies the location and position of the source code for a model element.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.SchemaModel.SourceCodePosition

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public NotInheritable Class SourceCodePosition _
    Implements IEquatable(Of SourceCodePosition)
public sealed class SourceCodePosition : IEquatable<SourceCodePosition>
public ref class SourceCodePosition sealed : IEquatable<SourceCodePosition^>
[<Sealed>]
type SourceCodePosition =  
    class
        interface IEquatable<SourceCodePosition>
    end
public final class SourceCodePosition implements IEquatable<SourceCodePosition>

The SourceCodePosition type exposes the following members.

Constructors

  Name Description
Public method SourceCodePosition Initializes a new instance of the SourceCodePosition class by using the provided parameters.

Top

Properties

  Name Description
Public property IsPrimary Gets a value that indicates whether this object represents the primary source for the element that it defines.
Public property Length Gets the offset in the source file for the start of the definition.
Public property SourceName Gets the name of the source, usually a file name.
Public property StartColumn Gets the number of the starting column for the definition.
Public property StartLine Gets the starting line number for the definition.
Public property StartOffset Gets the offset for the start of the definition in the source.

Top

Methods

  Name Description
Public method Equals(Object) Returns a value that indicates whether the provided object and the current object are equal. (Overrides Object.Equals(Object).)
Public method Equals(SourceCodePosition) Returns a value that indicates whether the provided object and the current object are equal.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Infrastructure. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace