Επεξεργασία

Κοινή χρήση μέσω


CodeRegionDirective Constructors

Definition

Initializes a new instance of the CodeRegionDirective class.

Overloads

CodeRegionDirective()

Initializes a new instance of the CodeRegionDirective class with default values.

CodeRegionDirective(CodeRegionMode, String)

Initializes a new instance of the CodeRegionDirective class, specifying its mode and name.

CodeRegionDirective()

Source:
CodeRegionDirective.cs
Source:
CodeRegionDirective.cs
Source:
CodeRegionDirective.cs
Source:
CodeRegionDirective.cs

Initializes a new instance of the CodeRegionDirective class with default values.

public:
 CodeRegionDirective();
public CodeRegionDirective ();
Public Sub New ()

Remarks

If you use this constructor, you should also set the RegionMode and RegionText properties.

Applies to

CodeRegionDirective(CodeRegionMode, String)

Source:
CodeRegionDirective.cs
Source:
CodeRegionDirective.cs
Source:
CodeRegionDirective.cs
Source:
CodeRegionDirective.cs

Initializes a new instance of the CodeRegionDirective class, specifying its mode and name.

public:
 CodeRegionDirective(System::CodeDom::CodeRegionMode regionMode, System::String ^ regionText);
public CodeRegionDirective (System.CodeDom.CodeRegionMode regionMode, string regionText);
new System.CodeDom.CodeRegionDirective : System.CodeDom.CodeRegionMode * string -> System.CodeDom.CodeRegionDirective
Public Sub New (regionMode As CodeRegionMode, regionText As String)

Parameters

regionMode
CodeRegionMode

One of the CodeRegionMode values.

regionText
String

The name for the region.

Examples

The following code example shows the use of the CodeRegionDirective(CodeRegionMode, String) constructor. This code example is part of a larger example provided for the CodeRegionDirective class.

CodeRegionDirective codeRegionDirective1 = new CodeRegionDirective(CodeRegionMode.Start,
    "Field Region");
Dim codeRegionDirective1 As New CodeRegionDirective(CodeRegionMode.Start, "Field Region")

Applies to