CodeRegionDirective Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應