SyntaxFactory.DocumentationCommentTrivia 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DocumentationCommentTrivia(SyntaxKind, SyntaxList<XmlNodeSyntax>) |
建立新的 DocumentationCommentTriviaSyntax 實例。 |
DocumentationCommentTrivia(SyntaxKind, SyntaxList<XmlNodeSyntax>, SyntaxToken) |
建立新的 DocumentationCommentTriviaSyntax 實例。 |
DocumentationCommentTrivia(SyntaxKind, SyntaxList<XmlNodeSyntax>)
建立新的 DocumentationCommentTriviaSyntax 實例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.DocumentationCommentTriviaSyntax DocumentationCommentTrivia (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax> content = default);
static member DocumentationCommentTrivia : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.DocumentationCommentTriviaSyntax
Public Shared Function DocumentationCommentTrivia (kind As SyntaxKind, Optional content As SyntaxList(Of XmlNodeSyntax) = Nothing) As DocumentationCommentTriviaSyntax
參數
- kind
- SyntaxKind
- content
- SyntaxList<XmlNodeSyntax>
傳回
適用於
DocumentationCommentTrivia(SyntaxKind, SyntaxList<XmlNodeSyntax>, SyntaxToken)
建立新的 DocumentationCommentTriviaSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::DocumentationCommentTriviaSyntax ^ DocumentationCommentTrivia(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::XmlNodeSyntax ^> content, Microsoft::CodeAnalysis::SyntaxToken endOfComment);
public static Microsoft.CodeAnalysis.CSharp.Syntax.DocumentationCommentTriviaSyntax DocumentationCommentTrivia (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax> content, Microsoft.CodeAnalysis.SyntaxToken endOfComment);
static member DocumentationCommentTrivia : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.DocumentationCommentTriviaSyntax
Public Shared Function DocumentationCommentTrivia (kind As SyntaxKind, content As SyntaxList(Of XmlNodeSyntax), endOfComment As SyntaxToken) As DocumentationCommentTriviaSyntax
參數
- kind
- SyntaxKind
- content
- SyntaxList<XmlNodeSyntax>
- endOfComment
- SyntaxToken