Region...End Region Directive

   
#Region...#End Region Directive

Syntax

 #Region   "identifier_string"   ' code goes here #End Region 
identifier_string (required; String literal)

The title of the code block (or region)

Description

Marks a block of code as an expandable and collapsible region or code block in the Visual Studio .NET editor

Rules at a Glance

  • Code blocks delineated with the #Region ... #End Region directive are collapsed by default.

  • identifier_string serves as the title to identify the region when it is collapsed.

  • Code blocks defined by other directives (such as #If ) must be entirely contained within the #Region ... #End Region block.

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net