 | ObjectWithAttributesCopyAttributesFrom Method |
Copies all attribute of the source object with attributes to the target object including
children
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static void CopyAttributesFrom(
this IObjectWithAttributes targetObject,
IObjectWithAttributes sourceObject,
bool includingValues
)
<ExtensionAttribute>
Public Shared Sub CopyAttributesFrom (
targetObject As IObjectWithAttributes,
sourceObject As IObjectWithAttributes,
includingValues As Boolean
)
public:
[ExtensionAttribute]
static void CopyAttributesFrom(
IObjectWithAttributes^ targetObject,
IObjectWithAttributes^ sourceObject,
bool includingValues
)
Parameters
- targetObject IObjectWithAttributes
- the target object
- sourceObject IObjectWithAttributes
- the source object
- includingValues Boolean
-
true if the copy process should include the attribute values,
not recommended for classes
Return Value
nothing
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IObjectWithAttributes. 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