Chỉnh sửa

KeyConverter Class

Definition

Converts a Key object to and from other types.

public ref class KeyConverter : System::ComponentModel::TypeConverter
public class KeyConverter : System.ComponentModel.TypeConverter
type KeyConverter = class
    inherit TypeConverter
Public Class KeyConverter
Inherits TypeConverter
Inheritance
KeyConverter

Remarks

The KeyConverter class only converts an instance Key to and from a String.

Constructors

Name Description
KeyConverter()

Initializes a new instance of the KeyConverter class.

Methods

Name Description
CanConvertFrom(ITypeDescriptorContext, Type)

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

CanConvertTo(ITypeDescriptorContext, Type)

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

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Attempts to convert the specified object to a Key, using the specified context.

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Attempts to convert a Key to the specified type, using the specified context.

Applies to