 | ObjectWithBaseClassOverriddenElement Method |
Determines, if an element of a class with an inheritance relation to a base class has an
overridden element with the specified name and type, what means a base class contains an
element which name is equal to the provided elementName.
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static XElement OverriddenElement(
this IClassWithBaseClassReference classWithBaseClass,
string elementName,
Type elementType
)
<ExtensionAttribute>
Public Shared Function OverriddenElement (
classWithBaseClass As IClassWithBaseClassReference,
elementName As String,
elementType As Type
) As XElement
public:
[ExtensionAttribute]
static XElement^ OverriddenElement(
IClassWithBaseClassReference^ classWithBaseClass,
String^ elementName,
Type^ elementType
)
Parameters
- classWithBaseClass IClassWithBaseClassReference
- the base class containing the element
- elementName String
- Name of the element.
- elementType Type
- Type of the element.
Return Value
XElementThe overridden element if it exists; otherwise
null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IClassWithBaseClassReference. 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