CSharpLineMappingWriter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CSharpLineMappingWriter(CSharpCodeWriter, SourceLocation, Int32)
public:
CSharpLineMappingWriter(Microsoft::AspNetCore::Razor::CodeGenerators::CSharpCodeWriter ^ writer, Microsoft::AspNetCore::Razor::SourceLocation documentLocation, int contentLength);
public CSharpLineMappingWriter (Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter writer, Microsoft.AspNetCore.Razor.SourceLocation documentLocation, int contentLength);
new Microsoft.AspNetCore.Razor.CodeGenerators.CSharpLineMappingWriter : Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter * Microsoft.AspNetCore.Razor.SourceLocation * int -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpLineMappingWriter
Public Sub New (writer As CSharpCodeWriter, documentLocation As SourceLocation, contentLength As Integer)
參數
- writer
- CSharpCodeWriter
- documentLocation
- SourceLocation
- contentLength
- Int32
適用於
CSharpLineMappingWriter(CSharpCodeWriter, SourceLocation, String)
初始化 用於產生執行時間行對應的新實例 CSharpLineMappingWriter 。 的建構實例 CSharpLineMappingWriter 不會追蹤 Razor 內容與產生的內容之間的對應。
public:
CSharpLineMappingWriter(Microsoft::AspNetCore::Razor::CodeGenerators::CSharpCodeWriter ^ writer, Microsoft::AspNetCore::Razor::SourceLocation documentLocation, System::String ^ sourceFileName);
public CSharpLineMappingWriter (Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter writer, Microsoft.AspNetCore.Razor.SourceLocation documentLocation, string sourceFileName);
new Microsoft.AspNetCore.Razor.CodeGenerators.CSharpLineMappingWriter : Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter * Microsoft.AspNetCore.Razor.SourceLocation * string -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpLineMappingWriter
Public Sub New (writer As CSharpCodeWriter, documentLocation As SourceLocation, sourceFileName As String)
參數
- writer
- CSharpCodeWriter
要 CSharpCodeWriter 寫入輸出的 。
- documentLocation
- SourceLocation
SourceLocation要對應的 Razor 內容的 。
- sourceFileName
- String
輸入檔路徑。
適用於
CSharpLineMappingWriter(CSharpCodeWriter, SourceLocation, Int32, String)
public:
CSharpLineMappingWriter(Microsoft::AspNetCore::Razor::CodeGenerators::CSharpCodeWriter ^ writer, Microsoft::AspNetCore::Razor::SourceLocation documentLocation, int contentLength, System::String ^ sourceFilename);
public CSharpLineMappingWriter (Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter writer, Microsoft.AspNetCore.Razor.SourceLocation documentLocation, int contentLength, string sourceFilename);
new Microsoft.AspNetCore.Razor.CodeGenerators.CSharpLineMappingWriter : Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter * Microsoft.AspNetCore.Razor.SourceLocation * int * string -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpLineMappingWriter
Public Sub New (writer As CSharpCodeWriter, documentLocation As SourceLocation, contentLength As Integer, sourceFilename As String)
參數
- writer
- CSharpCodeWriter
- documentLocation
- SourceLocation
- contentLength
- Int32
- sourceFilename
- String