Freigeben über


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)

Syntax

'Declaration
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.DisplayName",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainObjectIdAttribute("3bf2fb70-73e0-414e-be67-ea238ecbeb47")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<CategoryResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Category",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
Public Property WriteOptionalPropertiesWithDefaultValue As Boolean
    Get
    Set
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainObjectIdAttribute("3bf2fb70-73e0-414e-be67-ea238ecbeb47")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[CategoryResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Category", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
public bool WriteOptionalPropertiesWithDefaultValue { get; set; }
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.DisplayName", 
    typeof(DslDefinitionModelDomainModel), L"Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainObjectIdAttribute(L"3bf2fb70-73e0-414e-be67-ea238ecbeb47")]
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Description", 
    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")]
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")>]
[<DomainObjectIdAttribute("3bf2fb70-73e0-414e-be67-ea238ecbeb47")>]
[<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")>]
[<CategoryResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinition/WriteOptionalPropertiesWithDefaultValue.Category", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")>]
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