RootElementSettings Class

Similar to System.Xml.XmlWriterSettings, this class stores settings that need to be passed to a serializer when serializing a root element. Root element has additional information like schema target namespace, versions, etc., so additional information may be needed.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.RootElementSettings

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

Syntax

'Declaration
Public NotInheritable Class RootElementSettings
public sealed class RootElementSettings
public ref class RootElementSettings sealed
[<Sealed>]
type RootElementSettings =  class end
public final class RootElementSettings

The RootElementSettings type exposes the following members.

Constructors

  Name Description
Public method RootElementSettings Constructor

Top

Properties

  Name Description
Public property Item Gets and Sets additional properties. The default generated serialization code doesn't use any additional properties. This is designer for customization code to pass additional information, if necessary. On get, the given setting name is compared by ordinal, and null is returned if the given setting name doesn't match any stored setting value. On set, if there's an existing setting with the same name (compared by ordinal), the new value will replace the old one with no error. The setting name has to be non-empty.
Public property SchemaTargetNamespace Stores schema target namespace on the root element.
Public property Version Stores version on the root element.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace