[This is preliminary documentation and is subject to change.]
Contains functions helpful for converting data to and from native datatypes to SIF datatypes
| C# | Visual Basic | Visual C++ |
public abstract class SifFormatter
Public MustInherit Class SifFormatter
public ref class SifFormatter abstract
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| Encoding |
Returns the Encoding implementation used to encode SIF XML documents to binary transports
| |
| GetContent(SifElement, SifVersion) |
Gets the content from the SIFElement for the specified version of SIF. Only
elements that apply to the requested version of SIF will be returned.
| |
| GetFields(SifElement, SifVersion) |
Gets the fields from the SIFElement for the specified version of SIF. Only
the fields that apply to the requested version of SIF will be returned.
| |
| GuidToSifRefID(Nullable<(Of <Guid>)>) |
Converts a Guid to a string using the SIF format
| |
| SifRefIDToGuid(String) |
Converts a SIF RefId to a .Net Guid
| |
| SupportsNamespaces |
Returns true if the formatter supports XML Namespaces.
If this value returns true, XML Namespaces will be declared when writing
SIF Elements, and the xsi:nil attribute will be enabled
| |
| ToBool(String) |
Converts a SIF XML boolean value to a .Net bool? | |
| ToDate(String) |
Converts a String XML representation of an XML date to a DateTime? | |
| ToDateString(Nullable<(Of <DateTime>)>) |
Converts a DateTime? | |
| ToDateTime(String) |
Converts a String XML representation of an XML datetime to a DateTime? | |
| ToDateTimeString(Nullable<(Of <DateTime>)>) |
Converts a DateTime? | |
| ToDecimal(String) |
Converts a SIF XML decimal value to a .Net decimal? | |
| ToInt(String) |
Converts a SIF XML integer value to a .Net int? | |
| ToString(Nullable<(Of <Int32>)>) |
Converts an int? | |
| ToString(Nullable<(Of <Decimal>)>) |
Converts a Decimal? | |
| ToString(Nullable<(Of <Boolean>)>) |
Converts a DateTime? | |
| ToString(Nullable<(Of <TimeSpan>)>) |
Converts a TimeSpan? | |
| ToTime(String) |
Converts a String XML representation of an XML time to a DateTime? | |
| ToTimeSpan(String) |
Converts a SIF XML duration value to a .NET TimeSpan? | |
| ToTimeString(Nullable<(Of <DateTime>)>) |
Converts a DateTime? |
| Object | |
| SifFormatter | |