SpecialConstraintSyntax.WithConstraintKeyword(SyntaxToken) 方法

定义

返回一个副本,其中 ConstraintKeyword 属性已更改为指定值。 如果指定的值与当前值相同,则返回此实例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::SpecialConstraintSyntax ^ WithConstraintKeyword(Microsoft::CodeAnalysis::SyntaxToken constraintKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.SpecialConstraintSyntax WithConstraintKeyword (Microsoft.CodeAnalysis.SyntaxToken constraintKeyword);
member this.WithConstraintKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SpecialConstraintSyntax
Public Function WithConstraintKeyword (constraintKeyword As SyntaxToken) As SpecialConstraintSyntax

参数

constraintKeyword
SyntaxToken

返回

适用于