CodeComment 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 CodeComment class.
Overloads
CodeComment() |
Initializes a new instance of the CodeComment class. |
CodeComment(String) |
Initializes a new instance of the CodeComment class with the specified text as contents. |
CodeComment(String, Boolean) |
Initializes a new instance of the CodeComment class using the specified text and documentation comment flag. |
CodeComment()
- Source:
- CodeComment.cs
- Source:
- CodeComment.cs
- Source:
- CodeComment.cs
- Source:
- CodeComment.cs
Initializes a new instance of the CodeComment class.
public:
CodeComment();
public CodeComment ();
Public Sub New ()
Applies to
CodeComment(String)
- Source:
- CodeComment.cs
- Source:
- CodeComment.cs
- Source:
- CodeComment.cs
- Source:
- CodeComment.cs
Initializes a new instance of the CodeComment class with the specified text as contents.
public:
CodeComment(System::String ^ text);
public CodeComment (string text);
new System.CodeDom.CodeComment : string -> System.CodeDom.CodeComment
Public Sub New (text As String)
Parameters
- text
- String
The contents of the comment.
Applies to
CodeComment(String, Boolean)
- Source:
- CodeComment.cs
- Source:
- CodeComment.cs
- Source:
- CodeComment.cs
- Source:
- CodeComment.cs
Initializes a new instance of the CodeComment class using the specified text and documentation comment flag.
public:
CodeComment(System::String ^ text, bool docComment);
public CodeComment (string text, bool docComment);
new System.CodeDom.CodeComment : string * bool -> System.CodeDom.CodeComment
Public Sub New (text As String, docComment As Boolean)
Parameters
- text
- String
The contents of the comment.
- docComment
- Boolean
true
if the comment is a documentation comment; otherwise, false
.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應