Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 2.88 KB

File metadata and controls

40 lines (37 loc) · 2.88 KB
title Enumerations Overview (Visual Basic)
ms.custom
ms.date 07/20/2015
ms.prod .net
ms.reviewer
ms.suite
ms.technology
devlang-visual-basic
ms.topic article
helpviewer_keywords
Visual Basic code, enumerations
enumerations [Visual Basic], about enumerations
ms.assetid b42a38ee-5e77-4f99-a037-e3a127ead89c
caps.latest.revision 12
author dotnet-bot
ms.author dotnetcontent

Enumerations Overview (Visual Basic)

Enumerations provide a convenient way to work with sets of related constants and to associate constant values with names. For example, you can declare an enumeration for a set of integer constants associated with the days of the week, and then use the names of the days rather than their integer values in your code.

Tasks involving Enumerations

The following table lists common tasks involving enumerations.

To do this See
Find a pre-defined enumeration Constants and Enumerations
Declare an enumeration How to: Declare an Enumeration
Fully qualify an enumeration's name Enumerations and Name Qualification
Refer to an enumeration member How to: Refer to an Enumeration Member
Iterate through an enumeration How to: Iterate Through An Enumeration in Visual Basic
Determine the string associated with an enumeration How to: Determine the String Associated with an Enumeration Value
Decide when to use an enumeration When to Use an Enumeration

See Also

Constants Overview
User-Defined Constants
How to: Declare A Constant
Constant and Literal Data Types
Enum Statement