C# Class OSAE.OSAEObjectPropertyManager

Can be used to manager the properties of an object in OSA
Afficher le fichier Open project: opensourceautomation/Open-Source-Automation Class Usage Examples

Méthodes publiques

Méthode Description
GetObjectProperties ( string ObjectName ) : OSAEObjectPropertyCollection

The the properties of an object

GetObjectPropertyValue ( string ObjectName, string ObjectProperty ) : OSAE.OSAEObjectProperty

Returns an OSAEObjectProperty whcih contains the value, type, ID, last updated, and name

ObjectPropertyArrayAdd ( string objectName, string propertyName, string propertyValue, string propertyLabel ) : void

propertyLabel is usually left null

ObjectPropertyArrayDelete ( string objectName, string propertyName, string propertyValue ) : void

Deletes an item from a property array

ObjectPropertyArrayDeleteAll ( string objectName, string propertyName ) : void

Deletes all items from a property array

ObjectPropertyArrayGetAll ( string objectName, string propertyName ) : DataSet

Returns a Dataset of all the item in the property array

ObjectPropertyArrayGetRandom ( string objectName, string propertyName ) : string

Get one random value from a property array

ObjectPropertyArrayUpdate ( string objectName, string propertyName, string oldPropertyValue, string newPropertyValue, string newPropertyLabel ) : void

propertyLabel is usually left null

ObjectPropertyExists ( string objectName, string propertyName ) : System.Boolean

Check if object's property exists

ObjectPropertyHistoryGet ( string objectName, string propertyName, string from, string to ) : DataSet
ObjectPropertyListGet ( string objectName ) : DataSet
ObjectPropertyScraperAdd ( string objectName, string propertyName, string URL, string Prefix, int PrefixOffset, string Suffix, string UpdateInterval ) : void

propertyLabel is usually left null

ObjectPropertyScraperDelete ( int scraperid ) : void

propertyLabel is usually left null

ObjectPropertyScraperUpdate ( int scraperid, string objectName, string propertyName, string URL, string Prefix, int PrefixOffset, string Suffix, string UpdateInterval ) : void

propertyLabel is usually left null

ObjectPropertySet ( string objectName, string propertyName, string propertyValue, string source ) : void

Set the value of a object's property

Method Details

GetObjectProperties() public static méthode

The the properties of an object
public static GetObjectProperties ( string ObjectName ) : OSAEObjectPropertyCollection
ObjectName string The object to get the proeprties of
Résultat OSAEObjectPropertyCollection

GetObjectPropertyValue() public static méthode

Returns an OSAEObjectProperty whcih contains the value, type, ID, last updated, and name
public static GetObjectPropertyValue ( string ObjectName, string ObjectProperty ) : OSAE.OSAEObjectProperty
ObjectName string The name of the object to get the property of
ObjectProperty string
Résultat OSAE.OSAEObjectProperty

ObjectPropertyArrayAdd() public static méthode

propertyLabel is usually left null
public static ObjectPropertyArrayAdd ( string objectName, string propertyName, string propertyValue, string propertyLabel ) : void
objectName string
propertyName string
propertyValue string
propertyLabel string
Résultat void

ObjectPropertyArrayDelete() public static méthode

Deletes an item from a property array
public static ObjectPropertyArrayDelete ( string objectName, string propertyName, string propertyValue ) : void
objectName string
propertyName string
propertyValue string
Résultat void

ObjectPropertyArrayDeleteAll() public static méthode

Deletes all items from a property array
public static ObjectPropertyArrayDeleteAll ( string objectName, string propertyName ) : void
objectName string
propertyName string
Résultat void

ObjectPropertyArrayGetAll() public static méthode

Returns a Dataset of all the item in the property array
public static ObjectPropertyArrayGetAll ( string objectName, string propertyName ) : DataSet
objectName string
propertyName string
Résultat System.Data.DataSet

ObjectPropertyArrayGetRandom() public static méthode

Get one random value from a property array
public static ObjectPropertyArrayGetRandom ( string objectName, string propertyName ) : string
objectName string
propertyName string
Résultat string

ObjectPropertyArrayUpdate() public static méthode

propertyLabel is usually left null
public static ObjectPropertyArrayUpdate ( string objectName, string propertyName, string oldPropertyValue, string newPropertyValue, string newPropertyLabel ) : void
objectName string
propertyName string
oldPropertyValue string
newPropertyValue string
newPropertyLabel string
Résultat void

ObjectPropertyExists() public static méthode

Check if object's property exists
public static ObjectPropertyExists ( string objectName, string propertyName ) : System.Boolean
objectName string The name of the object
propertyName string The name of the property
Résultat System.Boolean

ObjectPropertyHistoryGet() public static méthode

public static ObjectPropertyHistoryGet ( string objectName, string propertyName, string from, string to ) : DataSet
objectName string
propertyName string
from string
to string
Résultat System.Data.DataSet

ObjectPropertyListGet() public static méthode

public static ObjectPropertyListGet ( string objectName ) : DataSet
objectName string
Résultat System.Data.DataSet

ObjectPropertyScraperAdd() public static méthode

propertyLabel is usually left null
public static ObjectPropertyScraperAdd ( string objectName, string propertyName, string URL, string Prefix, int PrefixOffset, string Suffix, string UpdateInterval ) : void
objectName string
propertyName string
URL string
Prefix string
PrefixOffset int
Suffix string
UpdateInterval string
Résultat void

ObjectPropertyScraperDelete() public static méthode

propertyLabel is usually left null
public static ObjectPropertyScraperDelete ( int scraperid ) : void
scraperid int
Résultat void

ObjectPropertyScraperUpdate() public static méthode

propertyLabel is usually left null
public static ObjectPropertyScraperUpdate ( int scraperid, string objectName, string propertyName, string URL, string Prefix, int PrefixOffset, string Suffix, string UpdateInterval ) : void
scraperid int
objectName string
propertyName string
URL string
Prefix string
PrefixOffset int
Suffix string
UpdateInterval string
Résultat void

ObjectPropertySet() public static méthode

Set the value of a object's property
public static ObjectPropertySet ( string objectName, string propertyName, string propertyValue, string source ) : void
objectName string The name of the object
propertyName string The name of the property
propertyValue string The value of the property
source string
Résultat void