Share via


FunctionMemberAst Constructor

Definition

Construct a member function.

public:
 FunctionMemberAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::FunctionDefinitionAst ^ functionDefinitionAst, System::Management::Automation::Language::TypeConstraintAst ^ returnType, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::AttributeAst ^> ^ attributes, System::Management::Automation::Language::MethodAttributes methodAttributes);
public FunctionMemberAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.FunctionDefinitionAst functionDefinitionAst, System.Management.Automation.Language.TypeConstraintAst returnType, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.AttributeAst> attributes, System.Management.Automation.Language.MethodAttributes methodAttributes);
new System.Management.Automation.Language.FunctionMemberAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.FunctionDefinitionAst * System.Management.Automation.Language.TypeConstraintAst * seq<System.Management.Automation.Language.AttributeAst> * System.Management.Automation.Language.MethodAttributes -> System.Management.Automation.Language.FunctionMemberAst
Public Sub New (extent As IScriptExtent, functionDefinitionAst As FunctionDefinitionAst, returnType As TypeConstraintAst, attributes As IEnumerable(Of AttributeAst), methodAttributes As MethodAttributes)

Parameters

extent
IScriptExtent

The extent of the method starting from any attributes to the closing curly.

functionDefinitionAst
FunctionDefinitionAst

The main body of the method.

returnType
TypeConstraintAst

The return type of the method, may be null.

attributes
IEnumerable<AttributeAst>

The custom attributes for the function.

methodAttributes
MethodAttributes

The method attributes like public or static.

Applies to