Share via


LabelStatementSyntax.WithColonToken(SyntaxToken) Method

Definition

Returns a copy of this with the ColonToken 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::LabelStatementSyntax ^ WithColonToken(Microsoft::CodeAnalysis::SyntaxToken colonToken);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelStatementSyntax WithColonToken (Microsoft.CodeAnalysis.SyntaxToken colonToken);
member this.WithColonToken : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelStatementSyntax
Public Function WithColonToken (colonToken As SyntaxToken) As LabelStatementSyntax

Parameters

colonToken
SyntaxToken

Returns

Applies to