Compartilhar via


PropertyMemberAst Class

Definition

The ast for a property.

public ref class PropertyMemberAst : System::Management::Automation::Language::MemberAst
public class PropertyMemberAst : System.Management.Automation.Language.MemberAst
type PropertyMemberAst = class
    inherit MemberAst
Public Class PropertyMemberAst
Inherits MemberAst
Inheritance
PropertyMemberAst

Constructors

PropertyMemberAst(IScriptExtent, String, TypeConstraintAst, IEnumerable<AttributeAst>, PropertyAttributes, ExpressionAst)

Construct a property member.

Properties

Attributes

The custom attributes of the property. This property is never null.

Extent

The extent in the source this ast represents.

(Inherited from Ast)
InitialValue

The ast for the initial value of the property. This property may be null if no initial value was specified.

IsHidden

Return true if the property is hidden.

IsPrivate

Return true if the property is private.

IsPublic

Return true if the property is public.

IsStatic

Return true if the property is static.

Name

The name of the property.

Parent

The parent tree for this node.

(Inherited from Ast)
PropertyAttributes

The attributes (like public or static) of the property.

PropertyType

The ast for the type of the property. This property may be null if no type was specified.

Methods

Copy()

Copy the PropertyMemberAst.

Find(Func<Ast,Boolean>, Boolean)

Traverse the entire Ast, returning the first node in the tree for which predicate returns true.

(Inherited from Ast)
FindAll(Func<Ast,Boolean>, Boolean)

Traverse the entire Ast, returning all nodes in the tree for which predicate returns true.

(Inherited from Ast)
SafeGetValue()

Constructs the resultant object from the AST and returns it if it is safe.

(Inherited from Ast)
SafeGetValue(Boolean)

Constructs the resultant object from the AST and returns it if it is safe.

(Inherited from Ast)
ToString()

Formats the ast and returns a string.

(Inherited from Ast)
Visit(AstVisitor)

Visit each node in the Ast, calling the methods in astVisitor for each node in the ast.

(Inherited from Ast)
Visit(ICustomAstVisitor)

Visit the Ast using a visitor that can choose how the tree traversal is performed. This visit method is for advanced uses of the visitor pattern where an AstVisitor is insufficient.

(Inherited from Ast)

Applies to