CodeComment 建構函式

定義

初始化 CodeComment 類別的新執行個體。Initializes a new instance of the CodeComment class.

多載

CodeComment()

初始化 CodeComment 類別的新執行個體。Initializes a new instance of the CodeComment class.

CodeComment(String)

使用指定的文字為內容,初始化 CodeComment 類別的新執行個體。Initializes a new instance of the CodeComment class with the specified text as contents.

CodeComment(String, Boolean)

使用指定的文字和文件註解旗標來初始化 CodeComment 類別的新執行個體。Initializes a new instance of the CodeComment class using the specified text and documentation comment flag.

CodeComment()

初始化 CodeComment 類別的新執行個體。Initializes a new instance of the CodeComment class.

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

CodeComment(String)

使用指定的文字為內容,初始化 CodeComment 類別的新執行個體。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)

參數

text
String

註解的內容。The contents of the comment.

CodeComment(String, Boolean)

使用指定的文字和文件註解旗標來初始化 CodeComment 類別的新執行個體。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)

參數

text
String

註解的內容。The contents of the comment.

docComment
Boolean

如果註解是文件註解,則為 true,否則為 falsetrue if the comment is a documentation comment; otherwise, false.

適用於