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