Compartilhar via


ConfigurationHelperService.GetSerializeAs(Type) Method

Definition

Determines the default serialization mechanism to use for a given type,.

public:
 System::Configuration::SettingsSerializeAs GetSerializeAs(Type ^ type);
public System.Configuration.SettingsSerializeAs GetSerializeAs (Type type);
member this.GetSerializeAs : Type -> System.Configuration.SettingsSerializeAs
Public Function GetSerializeAs (type As Type) As SettingsSerializeAs

Parameters

type
Type

The type that is requesting a serializer.

Returns

If this type has a TypeConverter that can convert to and from a string, then F:System.Configuration.SettingsSerializeAs.String, otherwise F:System.Configuration.SettingsSerializeAs.Xml.

Applies to