Instance Members

<< Click to Display Table of Contents >>

Navigation:  Reference > BNCS Namespace > Instance Class >

Instance Members

The Instance type exposes the following members.

 

Constructors


Name

Description

Public method

Instance

Constructor for creating an Instance object with the given XElement document.

 

Methods


Name

Description

Protected method

BuildSettings

(Inherited from BaseSettingsElement.)

Public method

GetChildInstance

Retrieves a child instance based on the provided InstanceId.

Public method

GetSetting(String)

Retrieves the value of a setting based on the provided SettingId.

(Inherited from BaseSettingsElement.)

Public method

GetSetting(String, String)

Retrieves a setting value based on the provided SettingId. If the setting is not found, the defaultValue is returned.

(Inherited from BaseSettingsElement.)

Public method

GetSetting<T>(String)

Retrieves a setting value of type T based on the provided SettingId.

(Inherited from BaseSettingsElement.)

Public method

GetSetting<T>(String, T)

Retrieves a setting value of type T from the settings dictionary. If the setting does not exist, returns the default value provided.

(Inherited from BaseSettingsElement.)

Public method

SafeReadAttribute

Safely reads the value of the specified attribute from the XML document.

(Inherited from BaseElement.)

Public method

ToString

Returns a string representation of the Instance object.

Public method

TryGetChildInstance

Tries to get the child instance with the specified InstanceId.

Public method

TryGetSetting(String, String)

Tries to get the value of a setting based on the provided SettingId.

(Inherited from BaseSettingsElement.)

Public method

TryGetSetting<T>(String, T)

Tries to get the setting value for the specified SettingId.

(Inherited from BaseSettingsElement.)

 

Properties


Name

Description

Public property

Alt_Id

Gets the value of the "alt_id" attribute.

Public property

ChildInstances

Gets the list of child instances associated with this object.

Public property

Composite

Gets a value indicating whether the element is composite.

Public property

DeviceId

Gets the device ID from the XML attribute "ref"

Public property

Id

Gets the value of the "id" attribute from the XML element.

Public property

InstanceType

Gets the value of the "type" attribute from the XML element.

Public property

Location

Gets the value of the "location" attribute from the XML element.

Public property

Managed

Gets or sets a value indicating whether the object is managed.

Public property

Offset

Gets the offset value from the "ref" attribute by parsing the string using a regular expression.

Public property

Parameters

Gets the parameters for the BNCS instance.

Public property

Settings

Gets the settings dictionary.

(Inherited from BaseSettingsElement.)

 

See Also


Instance Class

BNCS Namespace