Method AddProperty
AddProperty(ConnectivityConnectionProperty)
Adds the specified property to this connection.
public bool AddProperty(ConnectivityConnectionProperty prop)
Parameters
propConnectivityConnectionPropertyThe property to add.
Returns
- bool
trueif adding the property succeeded; otherwise,false.
AddProperty(ConnectivityConnectionProperty, bool)
Adds the specified connection property to this connection.
public bool AddProperty(ConnectivityConnectionProperty prop, bool both)
Parameters
propConnectivityConnectionPropertyThe connection property to add.
bothbooltrueif the property should be added to both ends of the connection; otherwise,false.
Returns
- bool
trueif adding the property succeeded; otherwise,false.
Remarks
When both is set to true, the connection must be known by both the source and destination element.
AddProperty(string, string, string, out int)
Adds the specified connection property to this connection.
public bool AddProperty(string name, string type, string value, out int id)
Parameters
namestringThe name of the property.
typestringThe type of the property.
valuestringThe value of the property.
idintThe ID of the property.
Returns
- bool
trueif adding the property succeeded; otherwise,false.
AddProperty(string, string, string, out int, bool)
Adds the specified connection property to this connection.
public bool AddProperty(string name, string type, string value, out int id, bool both)
Parameters
namestringThe name of the property.
typestringThe property type.
valuestringThe property value.
idintThe ID of the property.
bothbooltrueif the property should be added to both ends of the connection; otherwise,false.
Returns
- bool
trueif adding the property succeeded; otherwise,false.
Remarks
When both is set to true, the connection must be known by both the source and destination element.
AddProperty(string, string, string, out ConnectivityConnectionProperty, int)
Adds the specified connection property to this connection.
public bool AddProperty(string name, string type, string value, out ConnectivityConnectionProperty prop, int timeoutMs)
Parameters
namestringThe name of the property.
typestringThe property type.
valuestringThe property value.
propConnectivityConnectionPropertyThe created property.
timeoutMsintThe property addition timeout.
Returns
- bool
trueif adding the property succeeded; otherwise,false.
Remarks
In case the property was not created within the specified timeout, false will be returned. However, the message will still be handled by DataMiner.
AddProperty(string, string, string, out ConnectivityConnectionProperty, int, bool)
Adds the specified connection property to this connection.
public bool AddProperty(string name, string type, string value, out ConnectivityConnectionProperty prop, int timeoutMs, bool both)
Parameters
namestringThe name of the property.
typestringThe property type.
valuestringThe property value.
propConnectivityConnectionPropertyThe created property.
timeoutMsintThe property addition timeout.
bothbooltrueif the property should be added to both ends of the connection; otherwise,false.
Returns
- bool
trueif adding the property succeeded; otherwise,false.
Remarks
In case the property was not created within the specified timeout, false will be returned. However, the message will still be handled by DataMiner.