Dela via


DeclareStatementSyntax.WithDeclareKeyword(SyntaxToken) Method

Definition

Returns a copy of this with the DeclareKeyword 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::DeclareStatementSyntax ^ WithDeclareKeyword(Microsoft::CodeAnalysis::SyntaxToken declareKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.DeclareStatementSyntax WithDeclareKeyword (Microsoft.CodeAnalysis.SyntaxToken declareKeyword);
member this.WithDeclareKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.DeclareStatementSyntax
Public Function WithDeclareKeyword (declareKeyword As SyntaxToken) As DeclareStatementSyntax

Parameters

declareKeyword
SyntaxToken

Returns

Applies to