Class PrimitiveAccessStatus
Provides information about access to a primitive item.
Implements
Inherited Members
Namespace: AXSharp.Connector
Assembly: AXSharp.Connector.dll
Syntax
public class PrimitiveAccessStatus : INotifyPropertyChanged
Properties
| Edit this page View SourceCycle
Gets or sets the last cycle counter in which the item was accessed.
Declaration
public long Cycle { get; set; }
Property Value
Type | Description |
---|---|
long |
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 |
FailureReason
Gets or sets the reason of access failure.
Declaration
public string FailureReason { get; set; }
Property Value
Type | Description |
---|---|
string |
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 SourceOnPropertyChanged(string)
Raises the event when a property value changes.
Declaration
protected virtual void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName |
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 |
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 SourcePropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |