Share via


UserFacingErrorTypeConverter.ConvertFrom Method

Definition

Overloads

ConvertFrom(Object)

Converts the sourceValue parameter into an instance of UserFacingError

ConvertFrom(Object, Type, IFormatProvider, Boolean)

Converts the sourceValue parameter to the destinationType parameter using formatProvider and ignoreCase

ConvertFrom(Object)

Converts the sourceValue parameter into an instance of UserFacingError

public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IUserFacingError ConvertFrom (dynamic sourceValue);
static member ConvertFrom : obj -> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IUserFacingError
Public Shared Function ConvertFrom (sourceValue As Object) As IUserFacingError

Parameters

sourceValue
Object

the value to convert into an instance of UserFacingError.

Returns

an instance of UserFacingError, or null if there is no suitable conversion.

Applies to

ConvertFrom(Object, Type, IFormatProvider, Boolean)

Converts the sourceValue parameter to the destinationType parameter using formatProvider and ignoreCase

public override object ConvertFrom (object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase);
override this.ConvertFrom : obj * Type * IFormatProvider * bool -> obj
Public Overrides Function ConvertFrom (sourceValue As Object, destinationType As Type, formatProvider As IFormatProvider, ignoreCase As Boolean) As Object

Parameters

sourceValue
Object

the Object to convert from

destinationType
Type

the Type to convert to

formatProvider
IFormatProvider

not used by this TypeConverter.

ignoreCase
Boolean

when set to true, will ignore the case when converting.

Returns

an instance of UserFacingError, or null if there is no suitable conversion.

Applies to