TypePatternSyntax.WithType(TypeSyntax) 方法

定义

public Microsoft.CodeAnalysis.CSharp.Syntax.TypePatternSyntax WithType (Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type);
member this.WithType : Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.TypePatternSyntax
Public Function WithType (type As TypeSyntax) As TypePatternSyntax

参数

type
TypeSyntax

返回

适用于