SyntaxFactory.AllowsConstraintClause Method

Definition

Overloads

AllowsConstraintClause(SyntaxToken, SeparatedSyntaxList<AllowsConstraintSyntax>)

Creates a new AllowsConstraintClauseSyntax instance.

AllowsConstraintClause(SeparatedSyntaxList<AllowsConstraintSyntax>)

Creates a new AllowsConstraintClauseSyntax instance.

AllowsConstraintClause(SyntaxToken, SeparatedSyntaxList<AllowsConstraintSyntax>)

Source:
Syntax.xml.Main.Generated.cs

Creates a new AllowsConstraintClauseSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.AllowsConstraintClauseSyntax AllowsConstraintClause (Microsoft.CodeAnalysis.SyntaxToken allowsKeyword, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AllowsConstraintSyntax> constraints);
static member AllowsConstraintClause : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AllowsConstraintSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.AllowsConstraintClauseSyntax
Public Shared Function AllowsConstraintClause (allowsKeyword As SyntaxToken, constraints As SeparatedSyntaxList(Of AllowsConstraintSyntax)) As AllowsConstraintClauseSyntax

Parameters

allowsKeyword
SyntaxToken

Returns

Applies to

AllowsConstraintClause(SeparatedSyntaxList<AllowsConstraintSyntax>)

Source:
Syntax.xml.Main.Generated.cs

Creates a new AllowsConstraintClauseSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.AllowsConstraintClauseSyntax AllowsConstraintClause (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AllowsConstraintSyntax> constraints = default);
static member AllowsConstraintClause : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AllowsConstraintSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.AllowsConstraintClauseSyntax
Public Shared Function AllowsConstraintClause (Optional constraints As SeparatedSyntaxList(Of AllowsConstraintSyntax) = Nothing) As AllowsConstraintClauseSyntax

Parameters

Returns

Applies to