ConvertThroughString
Class
Definition
Enables a type that only has conversion from string to be converted from all other types through string
public class ConvertThroughString : System.Management.Automation.PSTypeConverter
- Inheritance
Inherited Members
System.Management.Automation.PSTypeConverter
Remarks
It is permitted to subclass ConvertThroughString but there is no established scenario for doing this, nor has it been tested.
Constructors
| ConvertThroughString() |
Methods
| CanConvertFrom(Object, Type) |
This will return false only if sourceValue is string |
| CanConvertTo(Object, Type) |
Returns false, since this converter is not designed to be used to convert from the type associated with the converted to other types. |
| ConvertFrom(Object, Type, IFormatProvider, Boolean) |
Converts to destinationType by first converting sourceValue to string and then converting the result to destinationType. |
| ConvertTo(Object, Type, IFormatProvider, Boolean) |
Throws NotSupportedException, since this converter is not designed to be used to convert from the type associated with the converted to other types. |