Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 3.16 KB

File metadata and controls

71 lines (50 loc) · 3.16 KB
title As Clause (Visual Basic)
ms.date 07/20/2015
ms.prod .net
ms.reviewer
ms.suite
ms.technology
devlang-visual-basic
ms.topic article
f1_keywords
vb.as
helpviewer_keywords
constraints, Visual Basic generic types
As keyword [Visual Basic], statement syntax
As keyword [Visual Basic]
ms.assetid b4281ec8-2be5-49f7-aae8-ae0a96265b0d
caps.latest.revision 19
author dotnet-bot
ms.author dotnetcontent

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

How to: Create a New Variable
Data Types
Variable Declaration
Type List
Generic Types in Visual Basic
Keywords