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
System.Object
Microsoft.VisualStudio.Modeling.RootElementSettings
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.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 | |
---|---|---|
RootElementSettings | Constructor |
Top
Properties
Name | Description | |
---|---|---|
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. | |
SchemaTargetNamespace | Stores schema target namespace on the root element. | |
Version | Stores version on the root element. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
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.