Partager via


ModuleSpecification Constructors

Definition

Overloads

ModuleSpecification()

Default constructor.

ModuleSpecification(Hashtable)

Construct a module specification from a hashtable. Keys can be ModuleName, ModuleVersion, and Guid. ModuleName must be convertible to String. ModuleVersion must be convertible to Version. Guid must be convertible to Guid.

ModuleSpecification(String)

Construct a module specification from the module name.

ModuleSpecification()

Default constructor.

public:
 ModuleSpecification();
public:
 ModuleSpecification();
 ModuleSpecification();
public ModuleSpecification ();
Public Sub New ()

Applies to

ModuleSpecification(Hashtable)

Construct a module specification from a hashtable. Keys can be ModuleName, ModuleVersion, and Guid. ModuleName must be convertible to String. ModuleVersion must be convertible to Version. Guid must be convertible to Guid.

public:
 ModuleSpecification(System::Collections::Hashtable ^ moduleSpecification);
public ModuleSpecification (System.Collections.Hashtable moduleSpecification);
new Microsoft.PowerShell.Commands.ModuleSpecification : System.Collections.Hashtable -> Microsoft.PowerShell.Commands.ModuleSpecification
Public Sub New (moduleSpecification As Hashtable)

Parameters

moduleSpecification
Hashtable

The module specification as a hashtable.

Applies to

ModuleSpecification(String)

Construct a module specification from the module name.

public:
 ModuleSpecification(System::String ^ moduleName);
public:
 ModuleSpecification(Platform::String ^ moduleName);
 ModuleSpecification(std::wstring const & moduleName);
public ModuleSpecification (string moduleName);
new Microsoft.PowerShell.Commands.ModuleSpecification : string -> Microsoft.PowerShell.Commands.ModuleSpecification
Public Sub New (moduleName As String)

Parameters

moduleName
String

The module name.

Applies to