SerializationUtilities Class

 

Provides utilities for serialization.

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

System::Object
  Microsoft.VisualStudio.Modeling::SerializationUtilities

public ref class SerializationUtilities abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddMessage(SerializationContext^, SerializationMessageKind, String^, Int32, Int32, array<KeyValuePair<String^, Object^>>^)

Adds a message to a serialization context.

System_CAPS_pubmethodSystem_CAPS_staticAddMessage(SerializationContext^, SerializationMessageKind, String^, IXmlLineInfo^, array<KeyValuePair<String^, Object^>>^)

Adds a message to a serialization context.

System_CAPS_pubmethodSystem_CAPS_staticAddMessage(SerializationContext^, SerializationMessageKind, XmlException^, array<KeyValuePair<String^, Object^>>^)

Adds a message to a serialization context.

System_CAPS_pubmethodSystem_CAPS_staticAddMessage(SerializationResult^, String^, SerializationMessageKind, String^, Int32, Int32, array<KeyValuePair<String^, Object^>>^)

Helper to build a SerializationMessage and store it into the given SerializationContext.

System_CAPS_pubmethodSystem_CAPS_staticAddValidationMessage(SerializationResult^, ValidationMessage^)

Adds a validation message to a serialization result.

System_CAPS_pubmethodSystem_CAPS_staticGetElementName(ModelElement^)

Gets the name of an element in the serialization results.

System_CAPS_pubmethodSystem_CAPS_staticGetNamespacesFromCurrentNode(XmlReader^)

Returns a list of the XML namespaces in the current node

System_CAPS_pubmethodSystem_CAPS_staticGetPositionInfo(XmlReader^, Int32, Int32)

Gets the position of the reader in the serialization results.

System_CAPS_pubmethodSystem_CAPS_staticGetString<T>(T)

Converts an object of a given type into a string.

System_CAPS_pubmethodSystem_CAPS_staticGetString<T>(SerializationContext^, T)

Converts a string into a given type.

System_CAPS_pubmethodSystem_CAPS_staticGetValue<T>(SerializationContext^, String^)

Converts a string to the given type

System_CAPS_pubmethodSystem_CAPS_staticGetValue<T>(String^)

Converts a string into a given type.

System_CAPS_pubmethodSystem_CAPS_staticReadExtensions(SerializationContext^, XmlReader^, Partition^)

Reads extension elements from the supplied reader.

System_CAPS_pubmethodSystem_CAPS_staticResolveDomainModels(XmlReader^, ISerializerLocator^, Store^)

Resolves XML namespace declarations to domain models and loads the domain models into the store.

System_CAPS_pubmethodSystem_CAPS_staticSkip(XmlReader^)

Skips the XmlReader.

System_CAPS_pubmethodSystem_CAPS_staticSkipToFirstChild(XmlReader^)

Moves the reader to the open tag of the first child element.

System_CAPS_pubmethodSystem_CAPS_staticSkipToNextElement(XmlReader^)

Moves the reader to the start tag of the next element.

System_CAPS_pubmethodSystem_CAPS_staticTryGetValue<T>(SerializationContext^, String^, T)

Try to convert a string into the given type, no exception is thrown.

System_CAPS_pubmethodSystem_CAPS_staticTryGetValue<T>(String^, T)

Tries to convert a string into a given type.

System_CAPS_pubmethodSystem_CAPS_staticTryGetValueFromBinaryForm<T>(String^, T)

Tries to deserialize a type from the given string.

System_CAPS_pubmethodSystem_CAPS_staticUnescapeXmlString(String^)

Obsolete.Converts an escaped string to an unescaped string read from XML.

System_CAPS_pubmethodSystem_CAPS_staticWriteDomainModelNamespaces(DomainXmlSerializerDirectory^, XmlWriter^, String^)

Write out the xml namespaces for domain models in the supplied directory

System_CAPS_pubmethodSystem_CAPS_staticWriteExtensions(SerializationContext^, XmlWriter^, IEnumerable<ExtensionElement^>^)

Write the supplied list of extension elements inside an extensions XML element.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticExtensionsXmlElementName

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.

Return to top
Show: