CodeVariableDeclarationStatement 构造函数

定义

初始化 CodeVariableDeclarationStatement 类的新实例。

重载

名称 说明
CodeVariableDeclarationStatement()

初始化 CodeVariableDeclarationStatement 类的新实例。

CodeVariableDeclarationStatement(CodeTypeReference, String)

使用指定的类型和名称初始化类的新实例 CodeVariableDeclarationStatement

CodeVariableDeclarationStatement(String, String)

使用指定的数据类型名称和变量名称初始化类的新实例 CodeVariableDeclarationStatement

CodeVariableDeclarationStatement(Type, String)

使用指定的数据类型和变量名称初始化类的新实例 CodeVariableDeclarationStatement

CodeVariableDeclarationStatement(CodeTypeReference, String, CodeExpression)

使用指定的数据类型、变量名称和初始化表达式初始化类的新实例 CodeVariableDeclarationStatement

CodeVariableDeclarationStatement(String, String, CodeExpression)

使用指定的数据类型、变量名称和初始化表达式初始化类的新实例 CodeVariableDeclarationStatement

CodeVariableDeclarationStatement(Type, String, CodeExpression)

使用指定的数据类型、变量名称和初始化表达式初始化类的新实例 CodeVariableDeclarationStatement

CodeVariableDeclarationStatement()

Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs

初始化 CodeVariableDeclarationStatement 类的新实例。

public:
 CodeVariableDeclarationStatement();
public CodeVariableDeclarationStatement();
Public Sub New ()

适用于

CodeVariableDeclarationStatement(CodeTypeReference, String)

Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs

使用指定的类型和名称初始化类的新实例 CodeVariableDeclarationStatement

public:
 CodeVariableDeclarationStatement(System::CodeDom::CodeTypeReference ^ type, System::String ^ name);
public CodeVariableDeclarationStatement(System.CodeDom.CodeTypeReference type, string name);
new System.CodeDom.CodeVariableDeclarationStatement : System.CodeDom.CodeTypeReference * string -> System.CodeDom.CodeVariableDeclarationStatement
Public Sub New (type As CodeTypeReference, name As String)

参数

type
CodeTypeReference

指示变量的数据类型的 A CodeTypeReference

name
String

变量的名称。

适用于

CodeVariableDeclarationStatement(String, String)

Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs

使用指定的数据类型名称和变量名称初始化类的新实例 CodeVariableDeclarationStatement

public:
 CodeVariableDeclarationStatement(System::String ^ type, System::String ^ name);
public CodeVariableDeclarationStatement(string type, string name);
new System.CodeDom.CodeVariableDeclarationStatement : string * string -> System.CodeDom.CodeVariableDeclarationStatement
Public Sub New (type As String, name As String)

参数

type
String

变量的数据类型的名称。

name
String

变量的名称。

适用于

CodeVariableDeclarationStatement(Type, String)

Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs

使用指定的数据类型和变量名称初始化类的新实例 CodeVariableDeclarationStatement

public:
 CodeVariableDeclarationStatement(Type ^ type, System::String ^ name);
public CodeVariableDeclarationStatement(Type type, string name);
new System.CodeDom.CodeVariableDeclarationStatement : Type * string -> System.CodeDom.CodeVariableDeclarationStatement
Public Sub New (type As Type, name As String)

参数

type
Type

变量的数据类型。

name
String

变量的名称。

适用于

CodeVariableDeclarationStatement(CodeTypeReference, String, CodeExpression)

Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs

使用指定的数据类型、变量名称和初始化表达式初始化类的新实例 CodeVariableDeclarationStatement

public:
 CodeVariableDeclarationStatement(System::CodeDom::CodeTypeReference ^ type, System::String ^ name, System::CodeDom::CodeExpression ^ initExpression);
public CodeVariableDeclarationStatement(System.CodeDom.CodeTypeReference type, string name, System.CodeDom.CodeExpression initExpression);
new System.CodeDom.CodeVariableDeclarationStatement : System.CodeDom.CodeTypeReference * string * System.CodeDom.CodeExpression -> System.CodeDom.CodeVariableDeclarationStatement
Public Sub New (type As CodeTypeReference, name As String, initExpression As CodeExpression)

参数

type
CodeTypeReference

一个 CodeTypeReference 指示变量的类型。

name
String

变量的名称。

initExpression
CodeExpression

指示变量的初始化表达式的 A CodeExpression

另请参阅

适用于

CodeVariableDeclarationStatement(String, String, CodeExpression)

Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs

使用指定的数据类型、变量名称和初始化表达式初始化类的新实例 CodeVariableDeclarationStatement

public:
 CodeVariableDeclarationStatement(System::String ^ type, System::String ^ name, System::CodeDom::CodeExpression ^ initExpression);
public CodeVariableDeclarationStatement(string type, string name, System.CodeDom.CodeExpression initExpression);
new System.CodeDom.CodeVariableDeclarationStatement : string * string * System.CodeDom.CodeExpression -> System.CodeDom.CodeVariableDeclarationStatement
Public Sub New (type As String, name As String, initExpression As CodeExpression)

参数

type
String

变量的数据类型的名称。

name
String

变量的名称。

initExpression
CodeExpression

指示变量的初始化表达式的 A CodeExpression

适用于

CodeVariableDeclarationStatement(Type, String, CodeExpression)

Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs
Source:
CodeVariableDeclarationStatement.cs

使用指定的数据类型、变量名称和初始化表达式初始化类的新实例 CodeVariableDeclarationStatement

public:
 CodeVariableDeclarationStatement(Type ^ type, System::String ^ name, System::CodeDom::CodeExpression ^ initExpression);
public CodeVariableDeclarationStatement(Type type, string name, System.CodeDom.CodeExpression initExpression);
new System.CodeDom.CodeVariableDeclarationStatement : Type * string * System.CodeDom.CodeExpression -> System.CodeDom.CodeVariableDeclarationStatement
Public Sub New (type As Type, name As String, initExpression As CodeExpression)

参数

type
Type

变量的数据类型。

name
String

变量的名称。

initExpression
CodeExpression

指示变量的初始化表达式的 A CodeExpression

适用于