As 子句 (Visual Basic)

引入一个 As 子句,该子句可标识声明语句中的数据类型或泛型类型参数的约束列表。

注解

As 关键字可用于以下上下文中:

Aggregate Clause

Class 语句

Const 语句

Declare Statement

Delegate 语句

Dim 语句

Enum 语句

Event 语句

For...Next 语句

For Each...Next 语句

From 子句

Function 语句

Group Join 子句

Interface 语句

Operator Statement

Property Statement

Structure 语句

Sub 语句

Try...Catch...Finally 语句

另请参阅