CodeComment 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 CodeComment 類別的新執行個體。
多載
CodeComment() |
初始化 CodeComment 類別的新執行個體。 |
CodeComment(String) |
使用指定的文字為內容,初始化 CodeComment 類別的新執行個體。 |
CodeComment(String, Boolean) |
使用指定的文字和文件註解旗標來初始化 CodeComment 類別的新執行個體。 |
CodeComment()
CodeComment(String)
使用指定的文字為內容,初始化 CodeComment 類別的新執行個體。
public:
CodeComment(System::String ^ text);
public CodeComment (string text);
new System.CodeDom.CodeComment : string -> System.CodeDom.CodeComment
Public Sub New (text As String)
參數
- text
- String
註解的內容。
適用於
CodeComment(String, Boolean)
使用指定的文字和文件註解旗標來初始化 CodeComment 類別的新執行個體。
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)
參數
- text
- String
註解的內容。
- docComment
- Boolean
如果註解是文件註解,則為 true
,否則為 false
。