共用方式為


TypeParameterSingleConstraintClauseSyntax.Update 方法

定義

傳回具有指定之變更的這個複本。 如果沒有實際變更,則傳回這個實例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeParameterSingleConstraintClauseSyntax ^ Update(Microsoft::CodeAnalysis::SyntaxToken asKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::ConstraintSyntax ^ constraint);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeParameterSingleConstraintClauseSyntax Update (Microsoft.CodeAnalysis.SyntaxToken asKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstraintSyntax constraint);
member this.Update : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ConstraintSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeParameterSingleConstraintClauseSyntax
Public Function Update (asKeyword As SyntaxToken, constraint As ConstraintSyntax) As TypeParameterSingleConstraintClauseSyntax

參數

asKeyword
SyntaxToken

AsKeyword 屬性的值。

constraint
ConstraintSyntax

Constraint 屬性的值。

傳回

適用於