次の方法で共有


As (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:

Class Statement

Const Statement

Declare Statement

Delegate Statement

Dim Statement

Enum Statement

Event Statement

For...Next Statements

For Each...Next Statements

Function Statement

Interface Statement

Operator Statement

Property Statement

Structure Statement

Sub Statement

Try...Catch...Finally Statements

See Also

Tasks

How to: Create a New Variable

Reference

Type List
Visual Basic Language Keywords

Concepts

Data Types in Visual Basic
Variable Declaration in Visual Basic
Generic Types in Visual Basic