Click or drag to resize
EF Visual Editor

ModelElementExtensionsGetCompartment Method

Gets the named compartment in this element

Namespace:  Sawczyn.EFDesigner.EFModel.Extensions
Assembly:  Sawczyn.EFDesigner.EFModel.Dsl (in Sawczyn.EFDesigner.EFModel.Dsl.dll) Version: 2.0.5.3 (2.0.5.3)
Syntax
public static ElementListCompartment GetCompartment(
	this ModelElement element,
	string compartmentName
)
Request Example View Source

Parameters

element
Type: ModelElement

[Missing <param name="element"/> documentation for "M:Sawczyn.EFDesigner.EFModel.Extensions.ModelElementExtensions.GetCompartment(Microsoft.VisualStudio.Modeling.ModelElement,System.String)"]

compartmentName
Type: SystemString

[Missing <param name="compartmentName"/> documentation for "M:Sawczyn.EFDesigner.EFModel.Extensions.ModelElementExtensions.GetCompartment(Microsoft.VisualStudio.Modeling.ModelElement,System.String)"]

Return Value

Type: ElementListCompartment

[Missing <returns> documentation for "M:Sawczyn.EFDesigner.EFModel.Extensions.ModelElementExtensions.GetCompartment(Microsoft.VisualStudio.Modeling.ModelElement,System.String)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ModelElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also