ModelElementExtensionMethods.IsExtendedBy Method

Definition

Overloads

IsExtendedBy(ModelElement, DomainClassInfo)

Query whether this ModelElement is currently extended by an ExtensionElement of a particular type.

IsExtendedBy(ModelElement, Guid)

Query whether this ModelElement is currently extended by an ExtensionElement of a particular type.

IsExtendedBy(ModelElement, Type)

Query whether this ModelElement is currently extended by an ExtensionElement of a particular type.

IsExtendedBy(ModelElement, DomainClassInfo)

Query whether this ModelElement is currently extended by an ExtensionElement of a particular type.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsExtendedBy(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ extensionClass);
public static bool IsExtendedBy (this Microsoft.VisualStudio.Modeling.ModelElement element, Microsoft.VisualStudio.Modeling.DomainClassInfo extensionClass);
static member IsExtendedBy : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainClassInfo -> bool
<Extension()>
Public Function IsExtendedBy (element As ModelElement, extensionClass As DomainClassInfo) As Boolean

Parameters

element
ModelElement

The element whose extensions are examined

extensionClass
DomainClassInfo

The domain class of the type of ExtensionElement to lookup

Returns

true if the element has an extension of the specified type, else false

Applies to

IsExtendedBy(ModelElement, Guid)

Query whether this ModelElement is currently extended by an ExtensionElement of a particular type.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsExtendedBy(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Guid extensionClassId);
public static bool IsExtendedBy (this Microsoft.VisualStudio.Modeling.ModelElement element, Guid extensionClassId);
static member IsExtendedBy : Microsoft.VisualStudio.Modeling.ModelElement * Guid -> bool
<Extension()>
Public Function IsExtendedBy (element As ModelElement, extensionClassId As Guid) As Boolean

Parameters

element
ModelElement

The element whose extensions are examined

extensionClassId
Guid

The domain class id of the type of ExtensionElement to look up

Returns

true if the element has an extension of the specified type, else false

Applies to

IsExtendedBy(ModelElement, Type)

Query whether this ModelElement is currently extended by an ExtensionElement of a particular type.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsExtendedBy(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Type ^ extensionType);
public static bool IsExtendedBy (this Microsoft.VisualStudio.Modeling.ModelElement element, Type extensionType);
static member IsExtendedBy : Microsoft.VisualStudio.Modeling.ModelElement * Type -> bool
<Extension()>
Public Function IsExtendedBy (element As ModelElement, extensionType As Type) As Boolean

Parameters

element
ModelElement

The element whose extensions are examined

extensionType
Type

The type of ExtensionElement to lookup

Returns

true if the element has an extension of the specified type, else false

Applies to