SourceLocation Structure
Specifies a location in a source file.
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
| Name | Description | |
|---|---|---|
![]() | SourceLocation(String^, Position) | Creates an instance of the SourceLocation with the given file name and position in the file. |
![]() | SourceLocation(String^, Position, Position) | Creates an instance of the SourceLocation with the given file name and start/end positions in the file. |
![]() | SourceLocation(Uri^, Position) | Creates an instance of the SourceLocation with the given file name URI and position in the file. |
![]() | SourceLocation(Uri^, Position, Position) | Creates an instance of the SourceLocation with the given file name URI and start/end positions in the file. |
| Name | Description | |
|---|---|---|
![]() | EndPosition | Gets the end location in the file. |
![]() | FileName | Gets the file name this source location belongs to. |
![]() | IsValid | Gets true if the source location instance is valid. |
![]() | StartPosition | Gets the start location in the file. |
| Name | Description | |
|---|---|---|
![]() | CreateGraphNodeId() | Creates graph node ID for this source location, which includes the file name and positions as parts. |
![]() | Equals(Object^) | Compares this source location instance with another object for equality.(Overrides ValueType::Equals(Object^).) |
![]() | Equals(SourceLocation) | Compares this source location instance with another source location instance for equality. |
![]() | GetHashCode() | See GetHashCode.(Overrides ValueType::GetHashCode().) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | Represents this source location as a string.(Overrides ValueType::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality(SourceLocation, SourceLocation) | Compares this source location instance with another source location instance for equality. |
![]() ![]() | Inequality(SourceLocation, SourceLocation) | Compares this source location instance with another source location instance for inequality. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



