MemberExpressionAst Constructors

Definition

Overloads

MemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, Boolean)

Initializes a new instance of the MemberExpressionAst class.

MemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, Boolean, Boolean)

Initializes a new instance of the MemberExpressionAst class.

MemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, Boolean)

Initializes a new instance of the MemberExpressionAst class.

public:
 MemberExpressionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::ExpressionAst ^ expression, System::Management::Automation::Language::CommandElementAst ^ member, bool static);
public MemberExpressionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.ExpressionAst expression, System.Management.Automation.Language.CommandElementAst member, bool static);
new System.Management.Automation.Language.MemberExpressionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.ExpressionAst * System.Management.Automation.Language.CommandElementAst * bool -> System.Management.Automation.Language.MemberExpressionAst
Public Sub New (extent As IScriptExtent, expression As ExpressionAst, member As CommandElementAst, static As Boolean)

Parameters

extent
IScriptExtent

The extent of the expression, starting with the expression before the operator '.' or '::' and ending after membername or expression naming the member.

expression
ExpressionAst

The expression before the member access operator '.' or '::'.

member
CommandElementAst

The name or expression naming the member to access.

static
Boolean

True if the '::' operator was used, false if '.' is used. True if the member access is for a static member, using '::', false if accessing a member on an instance using '.'.

Exceptions

If extent, expression, or member is null.

Applies to

MemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, Boolean, Boolean)

Initializes a new instance of the MemberExpressionAst class.

public MemberExpressionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.ExpressionAst expression, System.Management.Automation.Language.CommandElementAst member, bool static, bool nullConditional);
new System.Management.Automation.Language.MemberExpressionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.ExpressionAst * System.Management.Automation.Language.CommandElementAst * bool * bool -> System.Management.Automation.Language.MemberExpressionAst
Public Sub New (extent As IScriptExtent, expression As ExpressionAst, member As CommandElementAst, static As Boolean, nullConditional As Boolean)

Parameters

extent
IScriptExtent

The extent of the expression, starting with the expression before the operator '.', '::' or '?.' and ending after membername or expression naming the member.

expression
ExpressionAst

The expression before the member access operator '.', '::' or '?.'.

member
CommandElementAst

The name or expression naming the member to access.

static
Boolean

True if the '::' operator was used, false if '.' or '?.' is used.

nullConditional
Boolean

True if '?.' used.

Exceptions

If extent, expression, or member is null.

Applies to