TypeConstraintSyntax.WithType(TypeSyntax) 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeConstraintSyntax ^ WithType(Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ type);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeConstraintSyntax WithType (Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax type);
member this.WithType : Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeConstraintSyntax
Public Function WithType (type As TypeSyntax) As TypeConstraintSyntax

参数

type
TypeSyntax

返回

适用于