Search Results for

    Show / Hide Table of Contents

    Class AssemblyBinding

    Represents a binding that establishes a relationship from a ModelAction to executable code that is directly stored with the binding.

    Inheritance
    System.Object
    DynamicObject
    NamedDynamicObject
    ModelActionBinding
    AssemblyBinding
    Implements
    System.Dynamic.IDynamicMetaObjectProvider
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    NamedDynamicObject.OnPropertyChanged(String)
    NamedDynamicObject.Name
    NamedDynamicObject.PropertyChanged
    DynamicObject.GetMember(String)
    DynamicObject.SetMember(String, Object)
    DynamicObject.GetMetaObject(Expression)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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
    ModelActionBinding.Clone()

    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
    ModelActionBinding.Execute(ExecutionContext)
    Exceptions
    Type Condition
    System.InvalidOperationException

    Thrown if the assembly or method that is to be executed could not be resolved.

    In This Article
    Back to top Copyright © 2020 software architects gmbh