共用方式為


VarPatternSyntax.WithVarKeyword(SyntaxToken) 方法

定義

public Microsoft.CodeAnalysis.CSharp.Syntax.VarPatternSyntax WithVarKeyword (Microsoft.CodeAnalysis.SyntaxToken varKeyword);
member this.WithVarKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.VarPatternSyntax
Public Function WithVarKeyword (varKeyword As SyntaxToken) As VarPatternSyntax

參數

varKeyword
SyntaxToken

傳回

適用於