SourceLocation Structure

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies a location in a source file.

Namespace:  Microsoft.VisualStudio.GraphModel.CodeSchema
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

[TypeConverterAttribute(typeof(SourceLocationTypeConverter))]
public struct SourceLocation : IEquatable<SourceLocation>

The SourceLocation type exposes the following members.

  NameDescription
Public methodSourceLocation(String, Position)Creates an instance of the SourceLocation with the given file name and position in the file.
Public methodSourceLocation(Uri, Position)Creates an instance of the SourceLocation with the given file name URI and position in the file.
Public methodSourceLocation(String, Position, Position)Creates an instance of the SourceLocation with the given file name and start/end positions in the file.
Public methodSourceLocation(Uri, Position, Position)Creates an instance of the SourceLocation with the given file name URI and start/end positions in the file.
Top

  NameDescription
Public propertyEndPositionGets the end location in the file.
Public propertyFileNameGets the file name this source location belongs to.
Public propertyIsValidGets true if the source location instance is valid.
Public propertyStartPositionGets the start location in the file.
Top

  NameDescription
Public methodCreateGraphNodeIdCreates graph node ID for this source location, which includes the file name and positions as parts.
Public methodEquals(Object)Compares this source location instance with another object for equality. (Overrides ValueType.Equals(Object).)
Public methodEquals(SourceLocation)Compares this source location instance with another source location instance for equality.
Public methodGetHashCodeSee GetHashCode. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringRepresents this source location as a string. (Overrides ValueType.ToString().)
Top

  NameDescription
Public operatorStatic memberEqualityCompares this source location instance with another source location instance for equality.
Public operatorStatic memberInequalityCompares this source location instance with another source location instance for inequality.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft