ConfigurationHelperService.GetSerializeAs Method
Determines the default serialization mechanism to use for a given type,.
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'宣告
Public Function GetSerializeAs ( _
type As Type _
) As SettingsSerializeAs
'用途
Dim instance As ConfigurationHelperService
Dim type As Type
Dim returnValue As SettingsSerializeAs
returnValue = instance.GetSerializeAs(type)
public SettingsSerializeAs GetSerializeAs(
Type type
)
public:
SettingsSerializeAs GetSerializeAs(
Type^ type
)
member GetSerializeAs :
type:Type -> SettingsSerializeAs
public function GetSerializeAs(
type : Type
) : SettingsSerializeAs
Parameters
- type
Type: System.Type
The type that is requesting a serializer.
Return Value
Type: System.Configuration.SettingsSerializeAs
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.
Remarks
The same mechanism is used in ApplicationSettingsBase.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ConfigurationHelperService Class