CodeVariableDeclarationStatement Constructor (String^, String^, CodeExpression^)
.NET Framework (current version)
Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type, variable name, and initialization expression.
Assembly: System (in System.dll)
public:
CodeVariableDeclarationStatement(
String^ type,
String^ name,
CodeExpression^ initExpression
)
Parameters
- type
-
Type:
System::String^
The name of the data type of the variable.
- name
-
Type:
System::String^
The name of the variable.
- initExpression
-
Type:
System.CodeDom::CodeExpression^
A CodeExpression that indicates the initialization expression for the variable.
.NET Framework
Available since 1.1
Available since 1.1
Show: