CompartmentShape.FindCompartment Method
Searches for a compartment.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
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.StringThe 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
- 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.