 |
DataInjectionInject Method (Object, Type, Object, Boolean) |
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Injects all fields or properties which are marked with the defined attribute type name.
Namespace:
WeroSoft.Runtime
Assembly:
WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 3.0 Pre-Release
Syntaxpublic static void Inject(
this Object data,
Type attributeType,
Object value,
bool ignoreException
)
Parameters
- data
- Type: SystemObject
Data object on which data shall be injected. - attributeType
- Type: SystemType
Attribute type which is used to mark the injected elements. - value
- Type: SystemObject
Value which shall be injected. - ignoreException
- Type: SystemBoolean
Indicates whether exception shall be ignored.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. 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