Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ModuleSpecification Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents a module specification written in a module manifest (that is, in the RequiredModules property). Introduced in Windows PowerShell 3.0.

Namespace:   Microsoft.PowerShell.Commands
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  Microsoft.PowerShell.Commands.ModuleSpecification

public class ModuleSpecification

NameDescription
System_CAPS_pubmethodModuleSpecification()

Initializes a new instance of the ModuleSpecification object. This element is introduced in Windows PowerShell 5.0.

System_CAPS_pubmethodModuleSpecification(Hashtable)

Initializes a new instance of the ModuleSpecification class using a module specification. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodModuleSpecification(String)

Initializes a new instance of the ModuleSpecification class using a module name. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubpropertyGuid

Gets the global identifier of a module specification. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyMaximumVersion

The module maxVersion number if specified, otherwise null.

System_CAPS_pubpropertyName

Gets the name of a module specification. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyRequiredVersion

Gets the required version of a module specification. This element is introduced in Windows PowerShell 5.0.

System_CAPS_pubpropertyVersion

Gets the version number of a module specification. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a module specification as a String. Introduced in Windows PowerShell 4.0.(Overrides Object.ToString().)

System_CAPS_pubmethodSystem_CAPS_staticTryParse(String, ModuleSpecification)

Parse the specified string into a ModuleSpecification object.

This element is introduced in Windows PowerShell 5.0.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: