CodeRegionMode CodeRegionMode CodeRegionMode CodeRegionMode Enum

定义

指定代码区域的开始或结束。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
继承
CodeRegionModeCodeRegionModeCodeRegionModeCodeRegionMode
属性

字段

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.

示例

下面的代码示例演示如何使用CodeRegionMode枚举来指定区域的开始。The following code example shows the use of the CodeRegionMode enumeration to specify the start of a region. 此示例摘自一个更大的示例为提供CodeRegionDirective类。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"))

适用于