Share via


CodeComment 建構函式

定義

初始化 CodeComment 類別的新執行個體。

多載

CodeComment()

初始化 CodeComment 類別的新執行個體。

CodeComment(String)

使用指定的文字為內容,初始化 CodeComment 類別的新執行個體。

CodeComment(String, Boolean)

使用指定的文字和文件註解旗標來初始化 CodeComment 類別的新執行個體。

CodeComment()

來源:
CodeComment.cs
來源:
CodeComment.cs
來源:
CodeComment.cs

初始化 CodeComment 類別的新執行個體。

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

適用於

CodeComment(String)

來源:
CodeComment.cs
來源:
CodeComment.cs
來源:
CodeComment.cs

使用指定的文字為內容,初始化 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.cs
來源:
CodeComment.cs
來源:
CodeComment.cs

使用指定的文字和文件註解旗標來初始化 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

適用於