Bearbeiten

CommandConverter Class

Definition

Converts an ICommand object to and from other types.

public ref class CommandConverter sealed : System::ComponentModel::TypeConverter
public sealed class CommandConverter : System.ComponentModel.TypeConverter
type CommandConverter = class
    inherit TypeConverter
Public NotInheritable Class CommandConverter
Inherits TypeConverter
Inheritance
CommandConverter

Remarks

The CommandConverter class only converts an instance of ICommand to and from a String.

Constructors

Name Description
CommandConverter()

Initializes a new instance of the CommandConverter class.

Methods

Name Description
CanConvertFrom(ITypeDescriptorContext, Type)

Determines whether an object of the specified type can be converted to an instance of ICommand, using the specified context.

CanConvertTo(ITypeDescriptorContext, Type)

Determines whether an instance of ICommand can be converted to the specified type, using the specified context.

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Attempts to convert the specified object to an ICommand, using the specified context.

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Attempts to convert an ICommand to the specified type, using the specified context.

Applies to