Partager via


XmlSerializationDefinition.WriteOptionalPropertiesWithDefaultValue Property

Gets or sets the value of WriteOptionalPropertiesWithDefaultValue domain property. If True, properties with default value will be be written out to the saved file.

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

Syntax

'Declaration
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.DisplayName",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<CategoryResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Category",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainObjectIdAttribute("3bf2fb70-73e0-414e-be67-ea238ecbeb47")> _
Public Property WriteOptionalPropertiesWithDefaultValue As Boolean
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[CategoryResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Category", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainObjectIdAttribute("3bf2fb70-73e0-414e-be67-ea238ecbeb47")]
public bool WriteOptionalPropertiesWithDefaultValue { get; set; }
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.DisplayName", 
    typeof(DslDefinitionModelDomainModel), L"Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[CategoryResourceAttribute(L"Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Category", 
    typeof(DslDefinitionModelDomainModel), L"Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Description", 
    typeof(DslDefinitionModelDomainModel), L"Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainObjectIdAttribute(L"3bf2fb70-73e0-414e-be67-ea238ecbeb47")]
public:
property bool WriteOptionalPropertiesWithDefaultValue {
    bool get ();
    void set (bool value);
}
[<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")>]
[<CategoryResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Category", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")>]
[<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")>]
[<DomainObjectIdAttribute("3bf2fb70-73e0-414e-be67-ea238ecbeb47")>]
member WriteOptionalPropertiesWithDefaultValue : bool with get, set
function get WriteOptionalPropertiesWithDefaultValue () : boolean 
function set WriteOptionalPropertiesWithDefaultValue (value : boolean)

Property Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

XmlSerializationDefinition Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace