Delen via


Compartment.Name Property

Gets or sets the name of the compartment shape.

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

Syntax

'Declaration
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.Compartment/Name.DisplayName",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.Compartment/Name.Description",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<BrowsableAttribute(False)> _
<DomainObjectIdAttribute("2c017303-31f5-4a3c-bf57-f3dcdae3ad26")> _
Public Property Name As String
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.Compartment/Name.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.Compartment/Name.Description", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[BrowsableAttribute(false)]
[DomainObjectIdAttribute("2c017303-31f5-4a3c-bf57-f3dcdae3ad26")]
public string Name { get; set; }
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.Compartment/Name.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.Compartment/Name.Description", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[BrowsableAttribute(false)]
[DomainObjectIdAttribute(L"2c017303-31f5-4a3c-bf57-f3dcdae3ad26")]
public:
property String^ Name {
    String^ get ();
    void set (String^ value);
}
[<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.Compartment/Name.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")>]
[<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.Compartment/Name.Description", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")>]
[<BrowsableAttribute(false)>]
[<DomainObjectIdAttribute("2c017303-31f5-4a3c-bf57-f3dcdae3ad26")>]
member Name : string with get, set
function get Name () : String 
function set Name (value : String)

Property Value

Type: System.String
The name of the compartment shape.

.NET Framework Security

See Also

Reference

Compartment Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace