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

另請參閱

適用於