SyntaxFactory.Parameter Method

Definition

Overloads

Parameter(ModifiedIdentifierSyntax)

Represent a parameter to a method, property, constructor, etc.

Parameter(SyntaxList<AttributeListSyntax>, SyntaxTokenList, ModifiedIdentifierSyntax, SimpleAsClauseSyntax, EqualsValueSyntax)

Represent a parameter to a method, property, constructor, etc.

Parameter(ModifiedIdentifierSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represent a parameter to a method, property, constructor, etc.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ParameterSyntax ^ Parameter(Microsoft::CodeAnalysis::VisualBasic::Syntax::ModifiedIdentifierSyntax ^ identifier);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ParameterSyntax Parameter (Microsoft.CodeAnalysis.VisualBasic.Syntax.ModifiedIdentifierSyntax identifier);
static member Parameter : Microsoft.CodeAnalysis.VisualBasic.Syntax.ModifiedIdentifierSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ParameterSyntax
Public Shared Function Parameter (identifier As ModifiedIdentifierSyntax) As ParameterSyntax

Parameters

identifier
ModifiedIdentifierSyntax

The name of the parameter, including any "?" or "()" modifiers.

Returns

Applies to

Parameter(SyntaxList<AttributeListSyntax>, SyntaxTokenList, ModifiedIdentifierSyntax, SimpleAsClauseSyntax, EqualsValueSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represent a parameter to a method, property, constructor, etc.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ParameterSyntax ^ Parameter(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::VisualBasic::Syntax::ModifiedIdentifierSyntax ^ identifier, Microsoft::CodeAnalysis::VisualBasic::Syntax::SimpleAsClauseSyntax ^ asClause, Microsoft::CodeAnalysis::VisualBasic::Syntax::EqualsValueSyntax ^ default);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ParameterSyntax Parameter (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.VisualBasic.Syntax.ModifiedIdentifierSyntax identifier, Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax asClause, Microsoft.CodeAnalysis.VisualBasic.Syntax.EqualsValueSyntax default);
static member Parameter : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.VisualBasic.Syntax.ModifiedIdentifierSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.EqualsValueSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ParameterSyntax
Public Shared Function Parameter (attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As ModifiedIdentifierSyntax, asClause As SimpleAsClauseSyntax, default As EqualsValueSyntax) As ParameterSyntax

Parameters

attributeLists
SyntaxList<AttributeListSyntax>

A list of all attribute lists on this parameter. If no attributes were specified, Nothing is returned.

modifiers
SyntaxTokenList

A list of the modifier tokens "ByVal", "ByRef", "Optional" or "ParamArray" that modify this parameter.

identifier
ModifiedIdentifierSyntax

The name of the parameter, including any "?" or "()" modifiers.

asClause
SimpleAsClauseSyntax

If present, the "As type-name" clause describing the type of the parameter. If no As clause is present, Nothing is returned.

default
EqualsValueSyntax

If present, an initializer with the default value of the parameter. If no default value is present, Nothing is returned.

Returns

Applies to