 | ObjectWithBaseClassDeleteInheritedElement Method |
Deletes the inherited element. According to CAEX [DIN EN 62424:2008-08 A.2.4.1
(pp.48-49)], deleting of inherited properties is possible by redefinition of the
corresponding data again in the child object with the ChangeMode attribute set to "deleted".
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static bool DeleteInheritedElement(
this IClassWithBaseClassReference classWithBaseClass,
string elementName,
Type elementType
)
<ExtensionAttribute>
Public Shared Function DeleteInheritedElement (
classWithBaseClass As IClassWithBaseClassReference,
elementName As String,
elementType As Type
) As Boolean
public:
[ExtensionAttribute]
static bool DeleteInheritedElement(
IClassWithBaseClassReference^ classWithBaseClass,
String^ elementName,
Type^ elementType
)
Parameters
- classWithBaseClass IClassWithBaseClassReference
- The class with base class.
- elementName String
- Name of the element which should be deleted.
- elementType Type
- Type of the element which should be deleted.
Return Value
Boolean
true, if an inherited property was found and could be deleted; otherwise false.
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