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