Freigeben über


CodeVariableDeclarationStatement-Konstruktor (Type, String)

Initialisiert eine neue Instanz der CodeVariableDeclarationStatement-Klasse unter Verwendung des angegebenen Datentyps und Variablennamens.

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

Syntax

'Declaration
Public Sub New ( _
    type As Type, _
    name As String _
)
'Usage
Dim type As Type
Dim name As String

Dim instance As New CodeVariableDeclarationStatement(type, name)
public CodeVariableDeclarationStatement (
    Type type,
    string name
)
public:
CodeVariableDeclarationStatement (
    Type^ type, 
    String^ name
)
public CodeVariableDeclarationStatement (
    Type type, 
    String name
)
public function CodeVariableDeclarationStatement (
    type : Type, 
    name : String
)

Parameter

  • type
    Der Datentyp für die Variable.
  • name
    Der Name der Variablen.

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

CodeVariableDeclarationStatement-Klasse
CodeVariableDeclarationStatement-Member
System.CodeDom-Namespace