C# Класс OSAE.OSAEObjectPropertyManager

Can be used to manager the properties of an object in OSA
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GetObjectProperties() публичный статический Метод

The the properties of an object
public static GetObjectProperties ( string ObjectName ) : OSAEObjectPropertyCollection
ObjectName string The object to get the proeprties of
Результат OSAEObjectPropertyCollection

GetObjectPropertyValue() публичный статический Метод

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
Результат OSAE.OSAEObjectProperty

ObjectPropertyArrayAdd() публичный статический Метод

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
Результат void

ObjectPropertyArrayDelete() публичный статический Метод

Deletes an item from a property array
public static ObjectPropertyArrayDelete ( string objectName, string propertyName, string propertyValue ) : void
objectName string
propertyName string
propertyValue string
Результат void

ObjectPropertyArrayDeleteAll() публичный статический Метод

Deletes all items from a property array
public static ObjectPropertyArrayDeleteAll ( string objectName, string propertyName ) : void
objectName string
propertyName string
Результат void

ObjectPropertyArrayGetAll() публичный статический Метод

Returns a Dataset of all the item in the property array
public static ObjectPropertyArrayGetAll ( string objectName, string propertyName ) : DataSet
objectName string
propertyName string
Результат System.Data.DataSet

ObjectPropertyArrayGetRandom() публичный статический Метод

Get one random value from a property array
public static ObjectPropertyArrayGetRandom ( string objectName, string propertyName ) : string
objectName string
propertyName string
Результат string

ObjectPropertyArrayUpdate() публичный статический Метод

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
Результат void

ObjectPropertyExists() публичный статический Метод

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
Результат System.Boolean

ObjectPropertyHistoryGet() публичный статический Метод

public static ObjectPropertyHistoryGet ( string objectName, string propertyName, string from, string to ) : DataSet
objectName string
propertyName string
from string
to string
Результат System.Data.DataSet

ObjectPropertyListGet() публичный статический Метод

public static ObjectPropertyListGet ( string objectName ) : DataSet
objectName string
Результат System.Data.DataSet

ObjectPropertyScraperAdd() публичный статический Метод

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
Результат void

ObjectPropertyScraperDelete() публичный статический Метод

propertyLabel is usually left null
public static ObjectPropertyScraperDelete ( int scraperid ) : void
scraperid int
Результат void

ObjectPropertyScraperUpdate() публичный статический Метод

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
Результат void

ObjectPropertySet() публичный статический Метод

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
Результат void