As 子句 (Visual Basic)As Clause (Visual Basic)

引入一个 As 子句,该子句标识声明语句中的数据类型或泛型类型参数上的约束列表。Introduces an As clause, which identifies a data type in a declaration statement or a constraint list on a generic type parameter.

备注Remarks

As 关键字可用于以下上下文中:The As keyword can be used in these contexts:

Aggregate ClauseAggregate Clause

Class 语句Class Statement

Const 语句Const Statement

Declare StatementDeclare Statement

Delegate 语句Delegate Statement

Dim 语句Dim Statement

Enum 语句Enum Statement

Event 语句Event Statement

对于 .。。Next 语句For...Next Statements

对于每个 .。。Next 语句For Each...Next Statements

From 子句From Clause

Function 语句Function Statement

Group Join 子句Group Join Clause

Interface 语句Interface Statement

Operator StatementOperator Statement

Property StatementProperty Statement

Structure 语句Structure Statement

Sub 语句Sub Statement

尝试 .。。Catch .。。Finally 语句Try...Catch...Finally Statements

另请参阅See also