ModuleSpecification
Class
Definition
Represents module specification written in a module manifest (i.e. in RequiredModules member/field).
Module manifest allows 2 forms of module specification:
1. string - module name
2. hashtable - [string]ModuleName (required) + [Version]ModuleVersion (required) + [Guid]GUID (optional)
so we have a constructor that takes a string and a constructor that takes a hashtable
(so that LanguagePrimitives.ConvertTo can cast a string or a hashtable to this type)
public class ModuleSpecification
- Inheritance
-
ModuleSpecification
Constructors
| ModuleSpecification() | |
| 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. |
Properties
| Guid |
The module GUID, if specified. |
| Name |
The module name. |
| RequiredVersion | |
| Version |
The module version number if specified, otherwise null. |
Methods
| ToString() | |
| TryParse(String, ModuleSpecification) |