Megosztás a következőn keresztül:


UsingStatementAst Constructors

Definition

Overloads

UsingStatementAst(IScriptExtent, HashtableAst)

Construct a simple (one that is not a form of an alias) using module statement with module specification as hashtable.

UsingStatementAst(IScriptExtent, StringConstantExpressionAst, HashtableAst)

Construct a using module statement that aliases an item with module specification as hashtable.

UsingStatementAst(IScriptExtent, UsingStatementKind, StringConstantExpressionAst)

Construct a simple using statement (one that is not a form of an alias).

UsingStatementAst(IScriptExtent, UsingStatementKind, StringConstantExpressionAst, StringConstantExpressionAst)

Construct a using statement that aliases an item.

UsingStatementAst(IScriptExtent, HashtableAst)

Construct a simple (one that is not a form of an alias) using module statement with module specification as hashtable.

public:
 UsingStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::HashtableAst ^ moduleSpecification);
public UsingStatementAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.HashtableAst moduleSpecification);
new System.Management.Automation.Language.UsingStatementAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.HashtableAst -> System.Management.Automation.Language.UsingStatementAst
Public Sub New (extent As IScriptExtent, moduleSpecification As HashtableAst)

Parameters

extent
IScriptExtent

The extent of the using statement including the using keyword.

moduleSpecification
HashtableAst

HashtableAst that describes ModuleSpecification object.

Applies to

UsingStatementAst(IScriptExtent, StringConstantExpressionAst, HashtableAst)

Construct a using module statement that aliases an item with module specification as hashtable.

public:
 UsingStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::StringConstantExpressionAst ^ aliasName, System::Management::Automation::Language::HashtableAst ^ moduleSpecification);
public UsingStatementAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.StringConstantExpressionAst aliasName, System.Management.Automation.Language.HashtableAst moduleSpecification);
new System.Management.Automation.Language.UsingStatementAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.StringConstantExpressionAst * System.Management.Automation.Language.HashtableAst -> System.Management.Automation.Language.UsingStatementAst
Public Sub New (extent As IScriptExtent, aliasName As StringConstantExpressionAst, moduleSpecification As HashtableAst)

Parameters

extent
IScriptExtent

The extent of the using statement including the using keyword.

aliasName
StringConstantExpressionAst

The name of the alias.

moduleSpecification
HashtableAst

The module being aliased. Hashtable that describes ModuleSpecification

Applies to

UsingStatementAst(IScriptExtent, UsingStatementKind, StringConstantExpressionAst)

Construct a simple using statement (one that is not a form of an alias).

public:
 UsingStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::UsingStatementKind kind, System::Management::Automation::Language::StringConstantExpressionAst ^ name);
public UsingStatementAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.UsingStatementKind kind, System.Management.Automation.Language.StringConstantExpressionAst name);
new System.Management.Automation.Language.UsingStatementAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.UsingStatementKind * System.Management.Automation.Language.StringConstantExpressionAst -> System.Management.Automation.Language.UsingStatementAst
Public Sub New (extent As IScriptExtent, kind As UsingStatementKind, name As StringConstantExpressionAst)

Parameters

extent
IScriptExtent

The extent of the using statement including the using keyword.

kind
UsingStatementKind

The kind of using statement, cannot be Command or Type

name
StringConstantExpressionAst

The item (assembly, module, or namespace) being used.

Applies to

UsingStatementAst(IScriptExtent, UsingStatementKind, StringConstantExpressionAst, StringConstantExpressionAst)

Construct a using statement that aliases an item.

public:
 UsingStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::UsingStatementKind kind, System::Management::Automation::Language::StringConstantExpressionAst ^ aliasName, System::Management::Automation::Language::StringConstantExpressionAst ^ resolvedAliasAst);
public UsingStatementAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.UsingStatementKind kind, System.Management.Automation.Language.StringConstantExpressionAst aliasName, System.Management.Automation.Language.StringConstantExpressionAst resolvedAliasAst);
new System.Management.Automation.Language.UsingStatementAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.UsingStatementKind * System.Management.Automation.Language.StringConstantExpressionAst * System.Management.Automation.Language.StringConstantExpressionAst -> System.Management.Automation.Language.UsingStatementAst
Public Sub New (extent As IScriptExtent, kind As UsingStatementKind, aliasName As StringConstantExpressionAst, resolvedAliasAst As StringConstantExpressionAst)

Parameters

extent
IScriptExtent

The extent of the using statement including the using keyword.

kind
UsingStatementKind

The kind of using statement, cannot be Assembly.

aliasName
StringConstantExpressionAst

The name of the alias.

resolvedAliasAst
StringConstantExpressionAst

The item being aliased.

Applies to