SerializationUtilities Class
Provides utilities for serialization.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | AddMessage(SerializationContext^, SerializationMessageKind, String^, Int32, Int32, array<KeyValuePair<String^, Object^>>^) | Adds a message to a serialization context. |
![]() ![]() | AddMessage(SerializationContext^, SerializationMessageKind, String^, IXmlLineInfo^, array<KeyValuePair<String^, Object^>>^) | Adds a message to a serialization context. |
![]() ![]() | AddMessage(SerializationContext^, SerializationMessageKind, XmlException^, array<KeyValuePair<String^, Object^>>^) | Adds a message to a serialization context. |
![]() ![]() | AddMessage(SerializationResult^, String^, SerializationMessageKind, String^, Int32, Int32, array<KeyValuePair<String^, Object^>>^) | Helper to build a SerializationMessage and store it into the given SerializationContext. |
![]() ![]() | AddValidationMessage(SerializationResult^, ValidationMessage^) | Adds a validation message to a serialization result. |
![]() ![]() | GetElementName(ModelElement^) | Gets the name of an element in the serialization results. |
![]() ![]() | GetNamespacesFromCurrentNode(XmlReader^) | Returns a list of the XML namespaces in the current node |
![]() ![]() | GetPositionInfo(XmlReader^, Int32, Int32) | Gets the position of the reader in the serialization results. |
![]() ![]() | GetString<T>(T) | Converts an object of a given type into a string. |
![]() ![]() | GetString<T>(SerializationContext^, T) | Converts a string into a given type. |
![]() ![]() | GetValue<T>(SerializationContext^, String^) | Converts a string to the given type |
![]() ![]() | GetValue<T>(String^) | Converts a string into a given type. |
![]() ![]() | ReadExtensions(SerializationContext^, XmlReader^, Partition^) | Reads extension elements from the supplied reader. |
![]() ![]() | ResolveDomainModels(XmlReader^, ISerializerLocator^, Store^) | Resolves XML namespace declarations to domain models and loads the domain models into the store. |
![]() ![]() | Skip(XmlReader^) | Skips the XmlReader. |
![]() ![]() | SkipToFirstChild(XmlReader^) | Moves the reader to the open tag of the first child element. |
![]() ![]() | SkipToNextElement(XmlReader^) | Moves the reader to the start tag of the next element. |
![]() ![]() | TryGetValue<T>(SerializationContext^, String^, T) | Try to convert a string into the given type, no exception is thrown. |
![]() ![]() | TryGetValue<T>(String^, T) | Tries to convert a string into a given type. |
![]() ![]() | TryGetValueFromBinaryForm<T>(String^, T) | Tries to deserialize a type from the given string. |
![]() ![]() | UnescapeXmlString(String^) | Obsolete.Converts an escaped string to an unescaped string read from XML. |
![]() ![]() | WriteDomainModelNamespaces(DomainXmlSerializerDirectory^, XmlWriter^, String^) | Write out the xml namespaces for domain models in the supplied directory |
![]() ![]() | WriteExtensions(SerializationContext^, XmlWriter^, IEnumerable<ExtensionElement^>^) | Write the supplied list of extension elements inside an extensions XML element. |
| Name | Description | |
|---|---|---|
![]() ![]() | ExtensionsXmlElementName | The XML element name for the outer element that contains a list of ExtensionElements. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


