C# Class Microsoft.Tools.WindowsInstaller.PowerShell.AttributeColumnTypeConverter

Converts an Int32 (or nullable) to an AttributeColumn.
Inheritance: System.Management.Automation.PSTypeConverter
ファイルを表示 Open project: heaths/psmsi Class Usage Examples

Public Methods

Method Description
CanConvertFrom ( object sourceValue, Type destinationType ) : bool

Always returns false.

CanConvertTo ( object sourceValue, Type destinationType ) : bool

Returns true if the destinationType is an Int32 (or nullable).

ConvertFrom ( object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase ) : object

Always returns null.

ConvertTo ( object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase ) : object

Returns an Int32 (or null) from an AttributeColumn.

Method Details

CanConvertFrom() public method

Always returns false.
public CanConvertFrom ( object sourceValue, Type destinationType ) : bool
sourceValue object The value to convert from.
destinationType System.Type The type to convert to.
return bool

CanConvertTo() public method

Returns true if the destinationType is an Int32 (or nullable).
public CanConvertTo ( object sourceValue, Type destinationType ) : bool
sourceValue object Should always be an .
destinationType System.Type The type to convert to.
return bool

ConvertFrom() public method

Always returns null.
Conversion to the type is not supported.
public ConvertFrom ( object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase ) : object
sourceValue object The vaue to convert from.
destinationType System.Type The type to convert to.
formatProvider IFormatProvider An to use during conversion.
ignoreCase bool Whether to ignore case during conversion.
return object

ConvertTo() public method

Returns an Int32 (or null) from an AttributeColumn.
Conversion to the is not supported.
public ConvertTo ( object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase ) : object
sourceValue object The to convert.
destinationType System.Type The type to convert to.
formatProvider IFormatProvider An to use during conversion.
ignoreCase bool Whether to ignore case during conversion.
return object