IValueSerializerContext.GetValueSerializerFor 方法

定义

获取与对象关联的 ValueSerializer

重载

GetValueSerializerFor(PropertyDescriptor)

获取给定属性描述符的 ValueSerializer

GetValueSerializerFor(Type)

获取与指定类型关联的 ValueSerializer

GetValueSerializerFor(PropertyDescriptor)

获取给定属性描述符的 ValueSerializer

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

参数

descriptor
PropertyDescriptor

要转换的属性的描述符。

返回

一个可以序列化指定属性的 ValueSerializer

另请参阅

适用于

GetValueSerializerFor(Type)

获取与指定类型关联的 ValueSerializer

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

参数

type
Type

要转换的值的类型。

返回

可以序列化指定类型的 ValueSerializer

另请参阅

适用于