TryCastExpressionSyntax.WithType(TypeSyntax) 方法

定义

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

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

参数

type
TypeSyntax

返回

适用于