Partilhar via


CompartmentShape.FindCompartment Method

Searches for a compartment.

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 Function FindCompartment ( _
    id As String _
) As Compartment
public virtual Compartment FindCompartment(
    string id
)
public:
virtual Compartment^ FindCompartment(
    String^ id
)
abstract FindCompartment : 
        id:string -> Compartment 
override FindCompartment : 
        id:string -> Compartment 
public function FindCompartment(
    id : String
) : Compartment

Parameters

  • id
    Type: System.String
    The ID that is assigned to the compartment.

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.Compartment
The compartment; otherwise, null if no compartment is found.

.NET Framework Security

See Also

Reference

CompartmentShape Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace