Compartir a través de


TypeDefinitionAst Constructor

Definition

Construct a type definition.

public:
 TypeDefinitionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ name, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::AttributeAst ^> ^ attributes, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::MemberAst ^> ^ members, System::Management::Automation::Language::TypeAttributes typeAttributes, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::TypeConstraintAst ^> ^ baseTypes);
public TypeDefinitionAst (System.Management.Automation.Language.IScriptExtent extent, string name, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.AttributeAst> attributes, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.MemberAst> members, System.Management.Automation.Language.TypeAttributes typeAttributes, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.TypeConstraintAst> baseTypes);
new System.Management.Automation.Language.TypeDefinitionAst : System.Management.Automation.Language.IScriptExtent * string * seq<System.Management.Automation.Language.AttributeAst> * seq<System.Management.Automation.Language.MemberAst> * System.Management.Automation.Language.TypeAttributes * seq<System.Management.Automation.Language.TypeConstraintAst> -> System.Management.Automation.Language.TypeDefinitionAst
Public Sub New (extent As IScriptExtent, name As String, attributes As IEnumerable(Of AttributeAst), members As IEnumerable(Of MemberAst), typeAttributes As TypeAttributes, baseTypes As IEnumerable(Of TypeConstraintAst))

Parameters

extent
IScriptExtent

The extent of the type definition, from any attributes to the closing curly brace.

name
String

The name of the type.

attributes
IEnumerable<AttributeAst>

The attributes, or null if no attributes were specified.

members
IEnumerable<MemberAst>

The members, or null if no members were specified.

typeAttributes
TypeAttributes

The attributes (like class or interface) of the type.

baseTypes
IEnumerable<TypeConstraintAst>

Base class and implemented interfaces for the type.

Applies to