Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ModuleSpecification Constructors

Definition

Namespace:
Microsoft.PowerShell.Commands
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation v7.6.1

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.

Overloads

Name Description
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