Class AssemblyBinding
Represents a binding that establishes a relationship from a ModelAction to executable code that is directly stored with the binding.
Implements
Inherited Members
Namespace: TimeCockpit.Data.DataModel.Actions
Assembly: TimeCockpit.Data.dll
Syntax
public class AssemblyBinding : ModelActionBinding, IDynamicMetaObjectProvider, INotifyPropertyChanged
Constructors
AssemblyBinding()
Initializes a new instance of the AssemblyBinding class
Declaration
public AssemblyBinding()
AssemblyBinding(String, String)
Initializes a new instance of the AssemblyBinding class.
Declaration
public AssemblyBinding(string className, string methodName)
Parameters
Type | Name | Description |
---|---|---|
System.String | className | The classname this binding binds to. |
System.String | methodName | The name of the bound method. |
Properties
ClassName
Gets or sets the name of the class that holds a method to execute.
Declaration
public string ClassName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MethodName
Gets or sets the name of the method that is targeted by the binding.
Declaration
public string MethodName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Clone()
Creates a deep copy of the assembly binding.
Declaration
public override ModelActionBinding Clone()
Returns
Type | Description |
---|---|
ModelActionBinding | Returns a new instance fo this class, representing a clone. |
Overrides
Execute(ExecutionContext)
Calls an executable piece of code that is associated with the current AssemblyBinding.
Declaration
protected override void Execute(ExecutionContext context)
Parameters
Type | Name | Description |
---|---|---|
ExecutionContext | context | The ExecutionContext in which to execute the source code of a AssemblyBinding |
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if the assembly or method that is to be executed could not be resolved. |