Share via


Compartment.Name Property

Gets or sets the name of the compartment shape.

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

Syntax

'Declaration
<DomainObjectIdAttribute("2c017303-31f5-4a3c-bf57-f3dcdae3ad26")> _
<BrowsableAttribute(False)> _
<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")> _
Public Property Name As String
'Usage
Dim instance As Compartment 
Dim value As String 

value = instance.Name

instance.Name = value
[DomainObjectIdAttribute("2c017303-31f5-4a3c-bf57-f3dcdae3ad26")]
[BrowsableAttribute(false)]
[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")]
public string Name { get; set; }
[DomainObjectIdAttribute(L"2c017303-31f5-4a3c-bf57-f3dcdae3ad26")]
[BrowsableAttribute(false)]
[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")]
public:
property String^ Name {
    String^ get ();
    void set (String^ value);
}
public function get Name () : String 
public function set Name (value : String)

Property Value

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

.NET Framework Security

See Also

Reference

Compartment Class

Compartment Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace