Chronos Plugins 5.4.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
AxelSemrau.Chronos.Plugin.LinkPropertyAttribute Class Reference

Attribute to link the decorated Property with the specifyed Task and TaskProperty. More...

+ Inheritance diagram for AxelSemrau.Chronos.Plugin.LinkPropertyAttribute:
+ Collaboration diagram for AxelSemrau.Chronos.Plugin.LinkPropertyAttribute:

Public Member Functions

 LinkPropertyAttribute (string taskPropertyPath)
 Initializes a new instance of the LinkPropertyAttribute class.
 
 LinkPropertyAttribute (string taskName, string propertyName)
 Initializes a new instance of the LinkPropertyAttribute class.
 

Properties

string TaskName [get]
 The name of the task to be linked with.
 
string PropertyName [get]
 The property name to be linked with.
 

Detailed Description

Attribute to link the decorated Property with the specifyed Task and TaskProperty.

Definition at line 712 of file TaskInterfaces.cs.

Constructor & Destructor Documentation

◆ LinkPropertyAttribute() [1/2]

AxelSemrau.Chronos.Plugin.LinkPropertyAttribute.LinkPropertyAttribute ( string  taskPropertyPath)

Initializes a new instance of the LinkPropertyAttribute class.

Parameters
taskPropertyPathThe task property path to be linked with.

Definition at line 718 of file TaskInterfaces.cs.

719 {
720 var sp=taskPropertyPath.Split('.');
721 TaskName = sp[0];
722
723 if (sp.Length>1) PropertyName = sp[1];
724 }
string TaskName
The name of the task to be linked with.
string PropertyName
The property name to be linked with.

References AxelSemrau.Chronos.Plugin.LinkPropertyAttribute.PropertyName, and AxelSemrau.Chronos.Plugin.LinkPropertyAttribute.TaskName.

◆ LinkPropertyAttribute() [2/2]

AxelSemrau.Chronos.Plugin.LinkPropertyAttribute.LinkPropertyAttribute ( string  taskName,
string  propertyName 
)

Initializes a new instance of the LinkPropertyAttribute class.

Parameters
taskNameThe name of the task to be linked with.
propertyNameThe property name to be linked with.

Definition at line 731 of file TaskInterfaces.cs.

732 {
733 TaskName = taskName;
734 PropertyName = propertyName;
735 }

References AxelSemrau.Chronos.Plugin.LinkPropertyAttribute.PropertyName, and AxelSemrau.Chronos.Plugin.LinkPropertyAttribute.TaskName.

Property Documentation

◆ PropertyName

string AxelSemrau.Chronos.Plugin.LinkPropertyAttribute.PropertyName
get

The property name to be linked with.

The name of the property.

Definition at line 750 of file TaskInterfaces.cs.

750{ get; }

Referenced by AxelSemrau.Chronos.Plugin.LinkPropertyAttribute.LinkPropertyAttribute().

◆ TaskName

string AxelSemrau.Chronos.Plugin.LinkPropertyAttribute.TaskName
get

The name of the task to be linked with.

The name of the task.

Definition at line 742 of file TaskInterfaces.cs.

742{ get; }

Referenced by AxelSemrau.Chronos.Plugin.LinkPropertyAttribute.LinkPropertyAttribute().


The documentation for this class was generated from the following file: