CodeVariableDeclarationStatement Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the CodeVariableDeclarationStatement class.
Overloads
CodeVariableDeclarationStatement() |
Initializes a new instance of the CodeVariableDeclarationStatement class. |
CodeVariableDeclarationStatement(CodeTypeReference, String) |
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified type and name. |
CodeVariableDeclarationStatement(String, String) |
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type name and variable name. |
CodeVariableDeclarationStatement(Type, String) |
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type and variable name. |
CodeVariableDeclarationStatement(CodeTypeReference, String, CodeExpression) |
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type, variable name, and initialization expression. |
CodeVariableDeclarationStatement(String, String, CodeExpression) |
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type, variable name, and initialization expression. |
CodeVariableDeclarationStatement(Type, String, CodeExpression) |
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type, variable name, and initialization expression. |
CodeVariableDeclarationStatement()
Initializes a new instance of the CodeVariableDeclarationStatement class.
public:
CodeVariableDeclarationStatement();
public CodeVariableDeclarationStatement ();
Public Sub New ()
Applies to
CodeVariableDeclarationStatement(CodeTypeReference, String)
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified type and name.
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)
Parameters
- type
- CodeTypeReference
A CodeTypeReference that indicates the data type of the variable.
- name
- String
The name of the variable.
Applies to
CodeVariableDeclarationStatement(String, String)
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type name and variable name.
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)
Parameters
- type
- String
The name of the data type of the variable.
- name
- String
The name of the variable.
Applies to
CodeVariableDeclarationStatement(Type, String)
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type and variable name.
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)
Parameters
- type
- Type
The data type for the variable.
- name
- String
The name of the variable.
Applies to
CodeVariableDeclarationStatement(CodeTypeReference, String, CodeExpression)
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type, variable name, and initialization expression.
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)
Parameters
- type
- CodeTypeReference
A CodeTypeReference that indicates the type of the variable.
- name
- String
The name of the variable.
- initExpression
- CodeExpression
A CodeExpression that indicates the initialization expression for the variable.
See also
Applies to
CodeVariableDeclarationStatement(String, String, CodeExpression)
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type, variable name, and initialization expression.
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)
Parameters
- type
- String
The name of the data type of the variable.
- name
- String
The name of the variable.
- initExpression
- CodeExpression
A CodeExpression that indicates the initialization expression for the variable.
Applies to
CodeVariableDeclarationStatement(Type, String, CodeExpression)
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type, variable name, and initialization expression.
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)
Parameters
- type
- Type
The data type of the variable.
- name
- String
The name of the variable.
- initExpression
- CodeExpression
A CodeExpression that indicates the initialization expression for the variable.