CodeComment 建構函式

定義

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

多載

名稱 Description
CodeComment()

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

CodeComment(String)

初始化一個新的類別實例 CodeComment ,內容為指定的文字。

CodeComment(String, Boolean)

使用指定的文字與文件註解標誌初始化該類別的新實例 CodeComment

CodeComment()

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

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

適用於

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

適用於