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()
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- CodeVariableDeclarationStatement.cs
Инициализирует новый экземпляр класса CodeVariableDeclarationStatement.
public:
CodeVariableDeclarationStatement();
public CodeVariableDeclarationStatement ();
Public Sub New ()
Применяется к
CodeVariableDeclarationStatement(CodeTypeReference, String)
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- 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
CodeTypeReference, указывающий тип данных переменной.
- name
- String
Имя переменной.
Применяется к
CodeVariableDeclarationStatement(String, String)
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- 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)
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- 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)
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- 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
CodeExpression, указывающий выражение инициализации для переменной.
См. также раздел
Применяется к
CodeVariableDeclarationStatement(String, String, CodeExpression)
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- 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
CodeExpression, указывающий выражение инициализации для переменной.
Применяется к
CodeVariableDeclarationStatement(Type, String, CodeExpression)
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- CodeVariableDeclarationStatement.cs
- Исходный код:
- 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
CodeExpression, указывающий выражение инициализации для переменной.