C# Класс Mueller.Wddx.WddxDeserializer

This class is the main entry point for deserializing a WDDX packet into a native CLR object.
Показать файл Открыть проект

Открытые методы

Метод Описание
Deserialize ( XmlTextReader input ) : object

Deserialize an System.Xml.XmlTextReader pointing to a WDDX packet. Does not perform validation on the packet.

Deserialize ( XmlTextReader input, bool validate ) : object

Deserialize an System.Xml.XmlTextReader pointing to a WDDX packet.

If validate is set to true, this method will throw a WddxValidationException if it encounters invalid WDDX. Note that ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may throw a WddxValidationException for packets that can be successfully deserialized if validation is turned off.

Deserialize ( string WddxPacket ) : object

Deserializes a string containing a WDDX packet. Does not perform validation on the packet.

Deserialize ( string WddxPacket, bool validate ) : object

Deserializes a string containing a WDDX packet.

If validate is set to true, this method will throw a WddxValidationException if it encounters invalid WDDX.

IsValid ( XmlTextReader input ) : bool

Validates the given WDDX packet against the WDDX XML Schema, and indicates whether or not the packet passed validation.

ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may return false for packets that can be successfully deserialized.

IsValid ( string WddxPacket ) : bool

Validates the given WDDX packet against the WDDX XML Schema, and indicates whether or not the packet passed validation.

ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may return false for packets that can be successfully deserialized.

Описание методов

Deserialize() публичный Метод

Deserialize an System.Xml.XmlTextReader pointing to a WDDX packet. Does not perform validation on the packet.
public Deserialize ( XmlTextReader input ) : object
input System.Xml.XmlTextReader The pre-initialized pointing to the WDDX to be parsed.
Результат object

Deserialize() публичный Метод

Deserialize an System.Xml.XmlTextReader pointing to a WDDX packet.
If validate is set to true, this method will throw a WddxValidationException if it encounters invalid WDDX. Note that ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may throw a WddxValidationException for packets that can be successfully deserialized if validation is turned off.
/// The validate parameter is set to true and invalid WDDX is encountered. ///
public Deserialize ( XmlTextReader input, bool validate ) : object
input System.Xml.XmlTextReader The pre-initialized pointing to the WDDX to be parsed.
validate bool /// Boolean indicating whether or not validation should be performed during deserialization. ///
Результат object

Deserialize() публичный Метод

Deserializes a string containing a WDDX packet. Does not perform validation on the packet.
public Deserialize ( string WddxPacket ) : object
WddxPacket string The WDDX packet to be deserialized.
Результат object

Deserialize() публичный Метод

Deserializes a string containing a WDDX packet.
If validate is set to true, this method will throw a WddxValidationException if it encounters invalid WDDX.
/// The validate parameter is set to true and invalid WDDX is encountered. ///
public Deserialize ( string WddxPacket, bool validate ) : object
WddxPacket string The WDDX packet to be deserialized.
validate bool /// Boolean indicating whether or not validation should be performed during deserialization. ///
Результат object

IsValid() публичный Метод

Validates the given WDDX packet against the WDDX XML Schema, and indicates whether or not the packet passed validation.
ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may return false for packets that can be successfully deserialized.
public IsValid ( XmlTextReader input ) : bool
input System.Xml.XmlTextReader The pre-initialized pointing to the WDDX to be validated.
Результат bool

IsValid() публичный Метод

Validates the given WDDX packet against the WDDX XML Schema, and indicates whether or not the packet passed validation.
ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may return false for packets that can be successfully deserialized.
public IsValid ( string WddxPacket ) : bool
WddxPacket string The WDDX packet to be validated.
Результат bool