AX#

Search Results for

    Show / Hide Table of Contents

    Class PrimitiveAccessStatus

    Provides information about access to a primitive item.

    Inheritance
    object
    PrimitiveAccessStatus
    Implements
    INotifyPropertyChanged
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: AXSharp.Connector
    Assembly: AXSharp.Connector.dll
    Syntax
    public class PrimitiveAccessStatus : INotifyPropertyChanged

    Properties

    | Edit this page View Source

    Cycle

    Gets or sets the last cycle counter in which the item was accessed.

    Declaration
    public long Cycle { get; set; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    Failure

    Gets or sets whether there was a failure to access the item. Has notify property changed, can be used to indicate a problem in the UI.

    Declaration
    public bool Failure { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    FailureReason

    Gets or sets the reason of access failure.

    Declaration
    public string FailureReason { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    LastAccess

    Gets or sets time stamp of the last access to the item.

    Declaration
    public DateTime LastAccess { get; set; }
    Property Value
    Type Description
    DateTime

    Methods

    | Edit this page View Source

    OnPropertyChanged(string)

    Raises the event when a property value changes.

    Declaration
    protected virtual void OnPropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    string propertyName
    | Edit this page View Source

    SetField<T>(ref T, T, string)

    Sets the field when the incoming value changes.

    Declaration
    protected bool SetField<T>(ref T field, T value, string propertyName = null)
    Parameters
    Type Name Description
    T field
    T value
    string propertyName
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Update(long, string)

    Updates information about the access to the respective variable.

    Declaration
    public void Update(long cycle, string failureReason = "")
    Parameters
    Type Name Description
    long cycle

    Connector cycle (not to be confuses with PLC cycle)

    string failureReason

    Failure reason description. No failure if empty.

    Events

    | Edit this page View Source

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler

    Implements

    INotifyPropertyChanged
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFx. © MTS spol. s r.o., MTS spol. s r.o., and awesome contributors