Dela via


SourceLocation.Subtraction(SourceLocation, SourceLocation) Operator

Definition

Subtracts two SourceLocations.

public:
 static Microsoft::AspNetCore::Razor::SourceLocation operator -(Microsoft::AspNetCore::Razor::SourceLocation left, Microsoft::AspNetCore::Razor::SourceLocation right);
public static Microsoft.AspNetCore.Razor.SourceLocation operator - (Microsoft.AspNetCore.Razor.SourceLocation left, Microsoft.AspNetCore.Razor.SourceLocation right);
static member ( - ) : Microsoft.AspNetCore.Razor.SourceLocation * Microsoft.AspNetCore.Razor.SourceLocation -> Microsoft.AspNetCore.Razor.SourceLocation
Public Shared Operator - (left As SourceLocation, right As SourceLocation) As SourceLocation

Parameters

left
SourceLocation

The left operand.

right
SourceLocation

The right operand.

Returns

A SourceLocation that is the difference of the left and right operands.

Exceptions

if the FilePath of the left and right operands are different.

Applies to