CompartmentShape.AssociateCompartment Method
Assigns a compartment to the compartment shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public Overridable Sub AssociateCompartment ( _
compartment As Compartment, _
listKey As Type _
)
public virtual void AssociateCompartment(
Compartment compartment,
Type listKey
)
public:
virtual void AssociateCompartment(
Compartment^ compartment,
Type^ listKey
)
abstract AssociateCompartment :
compartment:Compartment *
listKey:Type -> unit
override AssociateCompartment :
compartment:Compartment *
listKey:Type -> unit
public function AssociateCompartment(
compartment : Compartment,
listKey : Type
)
Parameters
- compartment
Type: Microsoft.VisualStudio.Modeling.Diagrams.Compartment
The compartment to assign to the compartment shape.
- listKey
Type: System.Type
The key for the compartment.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.