通过


MachineKeyValidationConverter 类

定义

提供用于将对象转换为字符串和从字符串转换 MachineKeyValidation 的方法。

public ref class MachineKeyValidationConverter sealed : System::Configuration::ConfigurationConverterBase
public sealed class MachineKeyValidationConverter : System.Configuration.ConfigurationConverterBase
type MachineKeyValidationConverter = class
    inherit ConfigurationConverterBase
Public NotInheritable Class MachineKeyValidationConverter
Inherits ConfigurationConverterBase
继承
MachineKeyValidationConverter

注解

注释

HostProtectionAttribute应用于此类的属性具有以下Resources属性值: MayLeakOnAbortHostProtectionAttribute 不会影响桌面应用程序(通常通过双击图标、键入命令或在浏览器中输入 URL 来启动)。 有关详细信息,请参阅 HostProtectionAttribute 类或 SQL Server 编程和主机保护属性

构造函数

名称 说明
MachineKeyValidationConverter()

初始化 MachineKeyValidationConverter 类的新实例。

方法

名称 说明
CanConvertFrom(ITypeDescriptorContext, Type)

确定是否允许转换。

(继承自 ConfigurationConverterBase)
CanConvertFrom(Type)

返回此转换器是否可以将给定类型的对象转换为此转换器的类型。

(继承自 TypeConverter)
CanConvertTo(ITypeDescriptorContext, Type)

确定是否允许转换。

(继承自 ConfigurationConverterBase)
CanConvertTo(Type)

返回此转换器是否可以将对象转换为指定类型。

(继承自 TypeConverter)
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

将字符串转换为等效 MachineKeyValidation 值。

ConvertFrom(Object)

将给定值转换为此转换器的类型。

(继承自 TypeConverter)
ConvertFromInvariantString(ITypeDescriptorContext, String)

使用固定区域性和指定的上下文将给定字符串转换为此转换器的类型。

(继承自 TypeConverter)
ConvertFromInvariantString(String)

使用固定区域性将给定字符串转换为此转换器的类型。

(继承自 TypeConverter)
ConvertFromString(ITypeDescriptorContext, CultureInfo, String)

使用指定的上下文和区域性信息将给定文本转换为对象。

(继承自 TypeConverter)
ConvertFromString(ITypeDescriptorContext, String)

使用指定的上下文将给定文本转换为对象。

(继承自 TypeConverter)
ConvertFromString(String)

将指定的文本转换为对象。

(继承自 TypeConverter)
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

将值 MachineKeyValidation 转换为该值的字符串表示形式。

ConvertTo(Object, Type)

使用参数将给定值对象转换为指定类型。

(继承自 TypeConverter)
ConvertToInvariantString(ITypeDescriptorContext, Object)

使用指定的上下文将指定值转换为区域性固定字符串表示形式。

(继承自 TypeConverter)
ConvertToInvariantString(Object)

将指定的值转换为区域性固定字符串表示形式。

(继承自 TypeConverter)
ConvertToString(ITypeDescriptorContext, CultureInfo, Object)

使用指定的上下文和区域性信息将给定值转换为字符串表示形式。

(继承自 TypeConverter)
ConvertToString(ITypeDescriptorContext, Object)

使用给定上下文将给定值转换为字符串表示形式。

(继承自 TypeConverter)
ConvertToString(Object)

将指定的值转换为字符串表示形式。

(继承自 TypeConverter)
CreateInstance(IDictionary)

为对象重新创建一 Object 组给定的属性值。

(继承自 TypeConverter)
CreateInstance(ITypeDescriptorContext, IDictionary)

使用指定的上下文创建一个类型实例,该实例 TypeConverter 使用指定的上下文,给定对象的一组属性值。

(继承自 TypeConverter)
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetConvertFromException(Object)

返回在无法执行转换时引发的异常。

(继承自 TypeConverter)
GetConvertToException(Object, Type)

返回在无法执行转换时引发的异常。

(继承自 TypeConverter)
GetCreateInstanceSupported()

返回更改此对象上的值是否需要调用 CreateInstance(IDictionary) 该方法来创建新值。

(继承自 TypeConverter)
GetCreateInstanceSupported(ITypeDescriptorContext)

返回是否更改此对象上的值需要调用 CreateInstance(IDictionary) 才能使用指定的上下文创建新值。

(继承自 TypeConverter)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetProperties(ITypeDescriptorContext, Object, Attribute[])

使用指定的上下文和属性返回由值参数指定的数组类型的属性集合。

(继承自 TypeConverter)
GetProperties(ITypeDescriptorContext, Object)

使用指定的上下文返回由值参数指定的数组类型的属性集合。

(继承自 TypeConverter)
GetProperties(Object)

返回由值参数指定的数组类型的属性集合。

(继承自 TypeConverter)
GetPropertiesSupported()

返回此对象是否支持属性。

(继承自 TypeConverter)
GetPropertiesSupported(ITypeDescriptorContext)

返回此对象是否支持使用指定上下文的属性。

(继承自 TypeConverter)
GetStandardValues()

从此类型转换器设计为数据类型的默认上下文中返回标准值的集合。

(继承自 TypeConverter)
GetStandardValues(ITypeDescriptorContext)

返回此类型转换器在提供格式上下文时设计的数据类型的标准值的集合。

(继承自 TypeConverter)
GetStandardValuesExclusive()

返回的标准值的 GetStandardValues() 集合是否为独占列表。

(继承自 TypeConverter)
GetStandardValuesExclusive(ITypeDescriptorContext)

返回的标准值的 GetStandardValues() 集合是否是使用指定上下文的可能值的排他列表。

(继承自 TypeConverter)
GetStandardValuesSupported()

返回此对象是否支持可从列表中选择的标准值集。

(继承自 TypeConverter)
GetStandardValuesSupported(ITypeDescriptorContext)

返回此对象是否支持使用指定上下文从列表中选取的标准值集。

(继承自 TypeConverter)
GetType()

获取当前实例的 Type

(继承自 Object)
IsValid(ITypeDescriptorContext, Object)

返回给定值对象是否对此类型和指定的上下文有效。

(继承自 TypeConverter)
IsValid(Object)

返回给定值对象是否对此类型有效。

(继承自 TypeConverter)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
SortProperties(PropertyDescriptorCollection, String[])

对属性的集合进行排序。

(继承自 TypeConverter)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于