CodeRegionMode CodeRegionMode CodeRegionMode CodeRegionMode Enum

Definition

Specifies the start or end of a code region.

public enum class CodeRegionMode
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum CodeRegionMode
type CodeRegionMode = 
Public Enum CodeRegionMode
Inheritance
CodeRegionModeCodeRegionModeCodeRegionModeCodeRegionMode
Attributes

Fields

End End End End 2

End of the region.

None None None None 0

Not used.

Start Start Start Start 1

Start of the region.

Examples

The following code example shows the use of the CodeRegionMode enumeration to specify the start of a region. This example is part of a larger example provided for the CodeRegionDirective class.

cu.StartDirectives.Add(new CodeRegionDirective(CodeRegionMode.Start,
    "Compile Unit Region"));
cu.StartDirectives.Add(New CodeRegionDirective(CodeRegionMode.Start, "Compile Unit Region"))

Applies to