共用方式為


ErrorDirectiveTriviaSyntax.WithErrorKeyword(SyntaxToken) 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::ErrorDirectiveTriviaSyntax ^ WithErrorKeyword(Microsoft::CodeAnalysis::SyntaxToken errorKeyword);
public Microsoft.CodeAnalysis.CSharp.Syntax.ErrorDirectiveTriviaSyntax WithErrorKeyword (Microsoft.CodeAnalysis.SyntaxToken errorKeyword);
member this.WithErrorKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.ErrorDirectiveTriviaSyntax
Public Function WithErrorKeyword (errorKeyword As SyntaxToken) As ErrorDirectiveTriviaSyntax

參數

errorKeyword
SyntaxToken

傳回

適用於