편집

다음을 통해 공유


CodeComment Constructors

Definition

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