Share via


PropertyElement.DeserializeElement Method

Reads XML from the configuration file.

Namespace:  Microsoft.Practices.Unity.Configuration
Assembly:  Microsoft.Practices.Unity.Configuration (in Microsoft.Practices.Unity.Configuration.dll)

Syntax

'Declaration
Protected Overrides Sub DeserializeElement ( _
    reader As XmlReader, _
    serializeCollectionKey As Boolean _
)
protected override void DeserializeElement(
    XmlReader reader,
    bool serializeCollectionKey
)
protected:
virtual void DeserializeElement(
    XmlReader^ reader, 
    bool serializeCollectionKey
) override
protected override function DeserializeElement(
    reader : XmlReader, 
    serializeCollectionKey : boolean
)

Parameters

  • serializeCollectionKey
    Type: System.Boolean
    true to serialize only the collection key properties; otherwise, false.

Exceptions

Exception Condition
System.Configuration.ConfigurationErrorsException The element to read is locked. - or - An attribute of the current node is not recognized. - or - The lock status of the current node cannot be determined.

See Also

PropertyElement Class

Microsoft.Practices.Unity.Configuration Namespace