DomainClassXmlSerializer.WritePropertiesAsAttributes Method
Visual Studio 2012
Write all properties that need to be serialized as XML attributes.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
protected virtual void WritePropertiesAsAttributes( SerializationContext serializationContext, ModelElement element, XmlWriter writer )
Parameters
- serializationContext
- Type: Microsoft.VisualStudio.Modeling.SerializationContext
The serialization context.
- element
- Type: Microsoft.VisualStudio.Modeling.ModelElement
The ModelElement instance to be serialized.
- writer
- Type: XmlWriter
The XmlWriter to write serialized data to.
- 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.