Compartir a través de


ConstDirectiveTriviaSyntax.WithConstKeyword(SyntaxToken) Method

Definition

Returns a copy of this with the ConstKeyword property changed to the specified value. Returns this instance if the specified value is the same as the current value.

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::ConstDirectiveTriviaSyntax ^ WithConstKeyword(Microsoft::CodeAnalysis::SyntaxToken constKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstDirectiveTriviaSyntax WithConstKeyword (Microsoft.CodeAnalysis.SyntaxToken constKeyword);
member this.WithConstKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstDirectiveTriviaSyntax
Public Function WithConstKeyword (constKeyword As SyntaxToken) As ConstDirectiveTriviaSyntax

Parameters

constKeyword
SyntaxToken

Returns

Applies to