TypeOfExpressionSyntax.WithType(TypeSyntax) 方法

定义

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

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

参数

type
TypeSyntax

返回

适用于