IValueSerializerContext.GetValueSerializerFor Method

Definition

获取与对象关联的 ValueSerializerGets the ValueSerializer associated with an object.

Overloads

GetValueSerializerFor(PropertyDescriptor)

获取给定属性描述符的 ValueSerializerGets a ValueSerializer for the given property descriptor.

GetValueSerializerFor(Type)

获取与指定类型关联的 ValueSerializerGets the ValueSerializer associated with the specified type.

GetValueSerializerFor(PropertyDescriptor)

获取给定属性描述符的 ValueSerializerGets a ValueSerializer for the given property descriptor.

public:
 System::Windows::Markup::ValueSerializer ^ GetValueSerializerFor(System::ComponentModel::PropertyDescriptor ^ descriptor);
public System.Windows.Markup.ValueSerializer GetValueSerializerFor (System.ComponentModel.PropertyDescriptor descriptor);
abstract member GetValueSerializerFor : System.ComponentModel.PropertyDescriptor -> System.Windows.Markup.ValueSerializer
Public Function GetValueSerializerFor (descriptor As PropertyDescriptor) As ValueSerializer

Parameters

descriptor
PropertyDescriptor

要转换的属性的描述符。The descriptor of the property being converted.

Returns

ValueSerializer

一个可以序列化指定属性的 ValueSerializerA ValueSerializer capable of serializing the specified property.

See also

GetValueSerializerFor(Type)

获取与指定类型关联的 ValueSerializerGets the ValueSerializer associated with the specified type.

public:
 System::Windows::Markup::ValueSerializer ^ GetValueSerializerFor(Type ^ type);
public System.Windows.Markup.ValueSerializer GetValueSerializerFor (Type type);
abstract member GetValueSerializerFor : Type -> System.Windows.Markup.ValueSerializer
Public Function GetValueSerializerFor (type As Type) As ValueSerializer

Parameters

type
Type

要转换的值的类型。The type of the value being converted.

Returns

ValueSerializer

可以序列化指定类型的 ValueSerializerA ValueSerializer capable of serializing the specified type.

See also

Applies to