Condividi tramite


DeserializingTypeConverter.CanConvertTo Method

Definition

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 sourceValue parameter to the destinationType parameter.

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.

Applies to