VisualBasicMigrationCodeGenerator.WriteClassStart 方法

定义

重载

WriteClassStart(String, String, IndentedTextWriter, String, Boolean, IEnumerable<String>)

使用 语句和类定义生成命名空间。

WriteClassStart(String, String, IndentedTextWriter, String, Boolean)

使用 语句和类定义生成命名空间。

WriteClassStart(String, String, IndentedTextWriter, String, Boolean, IEnumerable<String>)

使用 语句和类定义生成命名空间。

protected virtual void WriteClassStart (string namespace, string className, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, string base, bool designer = false, System.Collections.Generic.IEnumerable<string> namespaces = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId="base")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId="namespace")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected virtual void WriteClassStart (string namespace, string className, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, string base, bool designer = false, System.Collections.Generic.IEnumerable<string> namespaces = null);
abstract member WriteClassStart : string * string * System.Data.Entity.Migrations.Utilities.IndentedTextWriter * string * bool * seq<string> -> unit
override this.WriteClassStart : string * string * System.Data.Entity.Migrations.Utilities.IndentedTextWriter * string * bool * seq<string> -> unit
Protected Overridable Sub WriteClassStart (namespace As String, className As String, writer As IndentedTextWriter, base As String, Optional designer As Boolean = false, Optional namespaces As IEnumerable(Of String) = null)

参数

namespace
String

应在中生成代码的命名空间。

className
String

应生成的类的名称。

writer
IndentedTextWriter

要向其添加生成的代码的文本编写器。

base
String

生成的类的基类。

designer
Boolean

一个 值,该值指示是否正在为代码隐藏文件生成此类。

namespaces
IEnumerable<String>

将为其添加 Imports 指令的命名空间。 如果为 null,则使用从 GetDefaultNamespaces 返回的命名空间。

属性

适用于

WriteClassStart(String, String, IndentedTextWriter, String, Boolean)

使用 语句和类定义生成命名空间。

protected virtual void WriteClassStart (string namespace, string className, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, string base, bool designer = false);
abstract member WriteClassStart : string * string * System.Data.Entity.Migrations.Utilities.IndentedTextWriter * string * bool -> unit
override this.WriteClassStart : string * string * System.Data.Entity.Migrations.Utilities.IndentedTextWriter * string * bool -> unit
Protected Overridable Sub WriteClassStart (namespace As String, className As String, writer As IndentedTextWriter, base As String, Optional designer As Boolean = false)

参数

namespace
String

应在中生成代码的命名空间。

className
String

应生成的类的名称。

writer
IndentedTextWriter

要向其添加生成的代码的文本编写器。

base
String

生成的类的基类。

designer
Boolean

一个 值,该值指示是否正在为代码隐藏文件生成此类。

适用于