Partilhar via


Propriedade XmlSerializationDefinition.WriteOptionalPropertiesWithDefaultValue

Obtém ou define o valor da propriedade de domínio WriteOptionalPropertiesWithDefaultValue.Se verdadeiro, propriedades com valor padrão serão gravados para o arquivo salvo.

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

Sintaxe

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

Valor de propriedade

Tipo: System.Boolean

Segurança do .NET Framework

Consulte também

Referência

XmlSerializationDefinition Classe

Namespace Microsoft.VisualStudio.Modeling.DslDefinition