C# Класс OSAE.OSAEObjectManager

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
EventTrigger ( string objectName, string eventName, string parameter1 = null, string parameter2 = null, string source = null ) : void

Add an entry to the event log table

GetObjectByAddress ( string address ) : OSAEObject

Returns an OSAEObject with the specified address

GetObjectByName ( string name ) : OSAEObject

Returns an OSAEObject with the specified name

GetObjectMethods ( string ObjectName ) : OSAEMethodCollection
GetObjectsByBaseType ( string ObjectBaseType ) : OSAEObjectCollection

Returns all objects with the specified base type

GetObjectsByContainer ( string ContainerName ) : OSAEObjectCollection

Returns a Dataset of all objects in a specified container

GetObjectsByOwner ( string ObjectOwner ) : OSAEObjectCollection
GetObjectsByPropertyValue ( string property, string value ) : OSAEObjectCollection

Returns an OSAEObject with the specified property

GetObjectsByType ( string ObjectType ) : OSAEObjectCollection

Returns a Dataset of all objects of specified type

ObjectAdd ( string name, string alias, string description, string objectType, string address, string container, int minTrustLevel, bool enabled ) : void

Create a new object

ObjectDelete ( string Name ) : void

Delete an object

ObjectDeleteByAddress ( string address ) : void

Delete an object

ObjectExists ( string objectName ) : bool

Returns true or false whether the object with the specified address exists

ObjectExistsByAddress ( string address ) : bool

Returns true or false whether the object with the specified address exists

ObjectExistsInContainer ( string pObject, string pContainer ) : bool

Returns true or false whether the object with the specified address exists

ObjectExport ( string ObjectName ) : string

Get Export script for object

ObjectUpdate ( string oldName, string newName, string alias, string description, string objectType, string address, string container, int minTrustLevel, bool enabled ) : void

Update an existing object

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

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

Add an entry to the event log table
public static EventTrigger ( string objectName, string eventName, string parameter1 = null, string parameter2 = null, string source = null ) : void
objectName string Object Name
eventName string Event Name
parameter1 string
parameter2 string
source string
Результат void

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

Returns an OSAEObject with the specified address
public static GetObjectByAddress ( string address ) : OSAEObject
address string
Результат OSAEObject

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

Returns an OSAEObject with the specified name
public static GetObjectByName ( string name ) : OSAEObject
name string
Результат OSAEObject

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

public static GetObjectMethods ( string ObjectName ) : OSAEMethodCollection
ObjectName string
Результат OSAEMethodCollection

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

Returns all objects with the specified base type
public static GetObjectsByBaseType ( string ObjectBaseType ) : OSAEObjectCollection
ObjectBaseType string
Результат OSAEObjectCollection

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

Returns a Dataset of all objects in a specified container
public static GetObjectsByContainer ( string ContainerName ) : OSAEObjectCollection
ContainerName string
Результат OSAEObjectCollection

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

public static GetObjectsByOwner ( string ObjectOwner ) : OSAEObjectCollection
ObjectOwner string
Результат OSAEObjectCollection

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

Returns an OSAEObject with the specified property
public static GetObjectsByPropertyValue ( string property, string value ) : OSAEObjectCollection
property string
value string
Результат OSAEObjectCollection

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

Returns a Dataset of all objects of specified type
public static GetObjectsByType ( string ObjectType ) : OSAEObjectCollection
ObjectType string
Результат OSAEObjectCollection

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

Create a new object
public static ObjectAdd ( string name, string alias, string description, string objectType, string address, string container, int minTrustLevel, bool enabled ) : void
name string
alias string
description string
objectType string
address string
container string
minTrustLevel int
enabled bool
Результат void

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

Delete an object
public static ObjectDelete ( string Name ) : void
Name string
Результат void

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

Delete an object
public static ObjectDeleteByAddress ( string address ) : void
address string
Результат void

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

Returns true or false whether the object with the specified address exists
public static ObjectExists ( string objectName ) : bool
objectName string
Результат bool

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

Returns true or false whether the object with the specified address exists
public static ObjectExistsByAddress ( string address ) : bool
address string
Результат bool

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

Returns true or false whether the object with the specified address exists
public static ObjectExistsInContainer ( string pObject, string pContainer ) : bool
pObject string
pContainer string
Результат bool

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

Get Export script for object
public static ObjectExport ( string ObjectName ) : string
ObjectName string
Результат string

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

Update an existing object
public static ObjectUpdate ( string oldName, string newName, string alias, string description, string objectType, string address, string container, int minTrustLevel, bool enabled ) : void
oldName string
newName string
alias string
description string
objectType string
address string
container string
minTrustLevel int
enabled bool
Результат void