共用方式為


IfDirectiveTriviaSyntax.WithIfKeyword(SyntaxToken) 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::IfDirectiveTriviaSyntax ^ WithIfKeyword(Microsoft::CodeAnalysis::SyntaxToken ifKeyword);
public Microsoft.CodeAnalysis.CSharp.Syntax.IfDirectiveTriviaSyntax WithIfKeyword (Microsoft.CodeAnalysis.SyntaxToken ifKeyword);
member this.WithIfKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.IfDirectiveTriviaSyntax
Public Function WithIfKeyword (ifKeyword As SyntaxToken) As IfDirectiveTriviaSyntax

參數

ifKeyword
SyntaxToken

傳回

適用於