CodeVariableDeclarationStatement Constructor (Type, String, CodeExpression)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type, variable name, and initialization expression.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public CodeVariableDeclarationStatement(
	Type type,
	string name,
	CodeExpression initExpression
)

Parameters

type
Type: System.Type

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
Return to top
Show: