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"))

適用於