CSharpCodeWritingScope 构造函数

定义

重载

CSharpCodeWritingScope(CodeWriter)
CSharpCodeWritingScope(CodeWriter, Boolean)
CSharpCodeWritingScope(CodeWriter, Int32)
CSharpCodeWritingScope(CodeWriter, Int32, Boolean)

CSharpCodeWritingScope(CodeWriter)

public:
 CSharpCodeWritingScope(Microsoft::AspNetCore::Razor::CodeGenerators::CodeWriter ^ writer);
public CSharpCodeWritingScope (Microsoft.AspNetCore.Razor.CodeGenerators.CodeWriter writer);
new Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope : Microsoft.AspNetCore.Razor.CodeGenerators.CodeWriter -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope
Public Sub New (writer As CodeWriter)

参数

writer
CodeWriter

适用于

CSharpCodeWritingScope(CodeWriter, Boolean)

public:
 CSharpCodeWritingScope(Microsoft::AspNetCore::Razor::CodeGenerators::CodeWriter ^ writer, bool autoSpace);
public CSharpCodeWritingScope (Microsoft.AspNetCore.Razor.CodeGenerators.CodeWriter writer, bool autoSpace);
new Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope : Microsoft.AspNetCore.Razor.CodeGenerators.CodeWriter * bool -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope
Public Sub New (writer As CodeWriter, autoSpace As Boolean)

参数

writer
CodeWriter
autoSpace
Boolean

适用于

CSharpCodeWritingScope(CodeWriter, Int32)

public:
 CSharpCodeWritingScope(Microsoft::AspNetCore::Razor::CodeGenerators::CodeWriter ^ writer, int tabSize);
public CSharpCodeWritingScope (Microsoft.AspNetCore.Razor.CodeGenerators.CodeWriter writer, int tabSize);
new Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope : Microsoft.AspNetCore.Razor.CodeGenerators.CodeWriter * int -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope
Public Sub New (writer As CodeWriter, tabSize As Integer)

参数

writer
CodeWriter
tabSize
Int32

适用于

CSharpCodeWritingScope(CodeWriter, Int32, Boolean)

public:
 CSharpCodeWritingScope(Microsoft::AspNetCore::Razor::CodeGenerators::CodeWriter ^ writer, int tabSize, bool autoSpace);
public CSharpCodeWritingScope (Microsoft.AspNetCore.Razor.CodeGenerators.CodeWriter writer, int tabSize, bool autoSpace);
new Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope : Microsoft.AspNetCore.Razor.CodeGenerators.CodeWriter * int * bool -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWritingScope
Public Sub New (writer As CodeWriter, tabSize As Integer, autoSpace As Boolean)

参数

writer
CodeWriter
tabSize
Int32
autoSpace
Boolean

适用于