As Clause (Visual Basic)

Introduces an As clause, which identifies a data type in a declaration statement or a constraint list on a generic type parameter.

Remarks

The As keyword can be used in these contexts:

Aggregate Clause

Class Statement

Const Statement

Declare Statement

Delegate Statement

Dim Statement

Enum Statement

Event Statement

For...Next Statements

For Each...Next Statements

From Clause

Function Statement

Group Join Clause

Interface Statement

Operator Statement

Property Statement

Structure Statement

Sub Statement

Try...Catch...Finally Statements

See also