DeserializingTypeConverter.CanConvertFrom Method
Definition
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
CanConvertFrom(PSObject, Type) |
Determines if the converter can convert the |
CanConvertFrom(Object, Type) |
This method is not implemented - an overload taking a PSObject is implemented instead. |
CanConvertFrom(PSObject, Type)
Determines if the converter can convert the sourceValue
parameter to the destinationType
parameter.
public:
override bool CanConvertFrom(System::Management::Automation::PSObject ^ sourceValue, Type ^ destinationType);
public override bool CanConvertFrom (System.Management.Automation.PSObject sourceValue, Type destinationType);
override this.CanConvertFrom : System.Management.Automation.PSObject * Type -> bool
Public Overrides Function CanConvertFrom (sourceValue As PSObject, destinationType As Type) As Boolean
Parameters
- sourceValue
- PSObject
The value to convert from.
- destinationType
- Type
The type to convert to.
Returns
True if the converter can convert the sourceValue
parameter to the destinationType
parameter, otherwise false.
Applies to
CanConvertFrom(Object, Type)
This method is not implemented - an overload taking a PSObject is implemented instead.
public:
override bool CanConvertFrom(System::Object ^ sourceValue, Type ^ destinationType);
public:
override bool CanConvertFrom(Platform::Object ^ sourceValue, Platform::Type ^ destinationType);
public override bool CanConvertFrom (object sourceValue, Type destinationType);
override this.CanConvertFrom : obj * Type -> bool
Public Overrides Function CanConvertFrom (sourceValue As Object, destinationType As Type) As Boolean
Parameters
- sourceValue
- Object
- destinationType
- Type