PropertyMemberAst Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Construct a property member.
public:
PropertyMemberAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ name, System::Management::Automation::Language::TypeConstraintAst ^ propertyType, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::AttributeAst ^> ^ attributes, System::Management::Automation::Language::PropertyAttributes propertyAttributes, System::Management::Automation::Language::ExpressionAst ^ initialValue);
public PropertyMemberAst (System.Management.Automation.Language.IScriptExtent extent, string name, System.Management.Automation.Language.TypeConstraintAst propertyType, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.AttributeAst> attributes, System.Management.Automation.Language.PropertyAttributes propertyAttributes, System.Management.Automation.Language.ExpressionAst initialValue);
new System.Management.Automation.Language.PropertyMemberAst : System.Management.Automation.Language.IScriptExtent * string * System.Management.Automation.Language.TypeConstraintAst * seq<System.Management.Automation.Language.AttributeAst> * System.Management.Automation.Language.PropertyAttributes * System.Management.Automation.Language.ExpressionAst -> System.Management.Automation.Language.PropertyMemberAst
Public Sub New (extent As IScriptExtent, name As String, propertyType As TypeConstraintAst, attributes As IEnumerable(Of AttributeAst), propertyAttributes As PropertyAttributes, initialValue As ExpressionAst)
Parameters
- extent
- IScriptExtent
The extent of the property starting with any custom attributes.
- name
- String
The name of the property.
- propertyType
- TypeConstraintAst
The ast for the type of the property - may be null.
- attributes
- IEnumerable<AttributeAst>
The custom attributes for the property.
- propertyAttributes
- PropertyAttributes
The attributes (like public or static) for the property.
- initialValue
- ExpressionAst
The initial value of the property (may be null).