共用方式為


XmlPropertyData.Representation 屬性

取得或設定 Representation 網域屬性的值。 如果為 Attribute,屬性 (Property) 會序列化為 xml 屬性 (Attribute)。如果為 Element,它會序列化為項目。如果為 Ignore,它不會序列化。

命名空間:  Microsoft.VisualStudio.Modeling.DslDefinition
組件:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll 中)

語法

'宣告
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlPropertyData/Representation.DisplayName",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<CategoryResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlPropertyData/Representation.Category",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlPropertyData/Representation.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainPropertyAttribute(Kind := DomainPropertyKind.CustomStorage)> _
<DomainObjectIdAttribute("2093b46b-424e-4a68-999f-5be00ce7e3b8")> _
Public Property Representation As XmlPropertyRepresentation
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlPropertyData/Representation.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[CategoryResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlPropertyData/Representation.Category", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.XmlPropertyData/Representation.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainPropertyAttribute(Kind = DomainPropertyKind.CustomStorage)]
[DomainObjectIdAttribute("2093b46b-424e-4a68-999f-5be00ce7e3b8")]
public XmlPropertyRepresentation Representation { get; set; }

屬性值

類型:Microsoft.VisualStudio.Modeling.DslDefinition.XmlPropertyRepresentation

.NET Framework 安全性

請參閱

參考

XmlPropertyData 類別

Microsoft.VisualStudio.Modeling.DslDefinition 命名空間