SourceCodePosition Constructor
Initializes a new instance of the SourceCodePosition class by using the provided parameters.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Sub New ( _
isPrimary As Boolean, _
startOffset As Integer, _
length As Integer, _
startLine As Integer, _
startColumn As Integer, _
sourceName As String _
)
public SourceCodePosition(
bool isPrimary,
int startOffset,
int length,
int startLine,
int startColumn,
string sourceName
)
public:
SourceCodePosition(
bool isPrimary,
int startOffset,
int length,
int startLine,
int startColumn,
String^ sourceName
)
new :
isPrimary:bool *
startOffset:int *
length:int *
startLine:int *
startColumn:int *
sourceName:string -> SourceCodePosition
public function SourceCodePosition(
isPrimary : boolean,
startOffset : int,
length : int,
startLine : int,
startColumn : int,
sourceName : String
)
Parameters
- isPrimary
Type: System.Boolean
true if this is the primary source for the element it defines.
- startOffset
Type: System.Int32
Offset in the source file for the start of the definition.
- length
Type: System.Int32
The length of the definition.
- startLine
Type: System.Int32
The line on which the definition starts.
- startColumn
Type: System.Int32
The column at which the definition starts.
- sourceName
Type: System.String
Name of the source, usually a file name.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.