Table of Contents

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
Object
AssemblyBinding
Implements
IDynamicMetaObjectProvider
INotifyPropertyChanged
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

className String

The classname this binding binds to.

methodName String

The 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

context ExecutionContext

The 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.