Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


IValueSerializerContext.GetValueSerializerFor Method

Definition

Gets the ValueSerializer associated with an object.

Overloads

GetValueSerializerFor(PropertyDescriptor)

Gets a ValueSerializer for the given property descriptor.

GetValueSerializerFor(Type)

Gets the ValueSerializer associated with the specified type.

GetValueSerializerFor(PropertyDescriptor)

Gets a ValueSerializer for the given property descriptor.

C#
public System.Windows.Markup.ValueSerializer GetValueSerializerFor(System.ComponentModel.PropertyDescriptor descriptor);

Parameters

descriptor
PropertyDescriptor

The descriptor of the property being converted.

Returns

A ValueSerializer capable of serializing the specified property.

See also

Applies to

.NET Framework 4.8.1 και άλλες εκδόσεις
Προϊόν Εκδόσεις
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetValueSerializerFor(Type)

Gets the ValueSerializer associated with the specified type.

C#
public System.Windows.Markup.ValueSerializer GetValueSerializerFor(Type type);

Parameters

type
Type

The type of the value being converted.

Returns

A ValueSerializer capable of serializing the specified type.

See also

Applies to

.NET Framework 4.8.1 και άλλες εκδόσεις
Προϊόν Εκδόσεις
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10