Sdílet prostřednictvím


SyntaxFactory.DeclarationPattern Method

Definition

Creates a new DeclarationPatternSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::DeclarationPatternSyntax ^ DeclarationPattern(Microsoft::CodeAnalysis::CSharp::Syntax::TypeSyntax ^ type, Microsoft::CodeAnalysis::CSharp::Syntax::VariableDesignationSyntax ^ designation);
public static Microsoft.CodeAnalysis.CSharp.Syntax.DeclarationPatternSyntax DeclarationPattern (Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax designation);
static member DeclarationPattern : Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.DeclarationPatternSyntax
Public Shared Function DeclarationPattern (type As TypeSyntax, designation As VariableDesignationSyntax) As DeclarationPatternSyntax

Parameters

type
TypeSyntax

Returns

Applies to