Udostępnij za pośrednictwem


TypeConstraintAst Constructors

Definition

Overloads

TypeConstraintAst(IScriptExtent, ITypeName)

Construct a type constraint from a possibly not yet resolved typename.

TypeConstraintAst(IScriptExtent, Type)

Construct a type constraint from a Type.

TypeConstraintAst(IScriptExtent, ITypeName)

Construct a type constraint from a possibly not yet resolved typename.

public:
 TypeConstraintAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::ITypeName ^ typeName);
public TypeConstraintAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.ITypeName typeName);
new System.Management.Automation.Language.TypeConstraintAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.ITypeName -> System.Management.Automation.Language.TypeConstraintAst
Public Sub New (extent As IScriptExtent, typeName As ITypeName)

Parameters

extent
IScriptExtent

The extent of the constraint, from the opening '[' to the closing ']'.

typeName
ITypeName

The type for the constraint.

Exceptions

If extent or typeName is null.

Applies to

TypeConstraintAst(IScriptExtent, Type)

Construct a type constraint from a Type.

public:
 TypeConstraintAst(System::Management::Automation::Language::IScriptExtent ^ extent, Type ^ type);
public TypeConstraintAst (System.Management.Automation.Language.IScriptExtent extent, Type type);
new System.Management.Automation.Language.TypeConstraintAst : System.Management.Automation.Language.IScriptExtent * Type -> System.Management.Automation.Language.TypeConstraintAst
Public Sub New (extent As IScriptExtent, type As Type)

Parameters

extent
IScriptExtent

The extent of the constraint, from the opening '[' to the closing ']'.

type
Type

The type for the constraint.

Exceptions

If extent or type is null.

Applies to