RTI Connext C# API Version 7.3.0
Rti.Dds.Core.Policy.Property Class Reference

Stores key-value string pairs that can configure certain Connext DDS parameters not exposed through QoS policies. It can also store and propagate through the discovery mechanism application-specific information associated with an Entity. More...

Inherits IEquatable< Property >.

Data Structures

struct  Entry
 The entry in the Property dictionary More...
 

Public Member Functions

Property With (Action< PropertyDict.Builder > build)
 Creates a new Property with a set of changes specified in an Action More...
 
Dictionary< string, string > ToStringDictionary ()
 Creates a string dictionary from the key-value pairs in this Property. The returned dictionary doesn't include the values of Entry.Propagate. More...
 
override bool Equals (object other)
 Compares for equality More...
 
override int GetHashCode ()
 Gets the hash code of Value. More...
 
bool Equals (Property other)
 Compares for equality More...
 

Static Public Member Functions

static Property FromDictionary (IDictionary< string, Entry > value)
 Creates a Property object with the keys and entries in a Dictionary More...
 
static Property FromDictionary (IDictionary< string, string > dict, bool propagate=false)
 Creates a Property object with the keys and values in a Dictionary, with all entries having the same Entry.Propagate value. More...
 
static Property FromDictionary (PropertyDict value)
 Creates a Property object with the key-value pairs in a Dictionary More...
 

Properties

PropertyDict Value [get]
 Gets the dictionary containing the properties More...
 
static Property Default = new Property(PropertyDict.Empty) [get]
 Singleton containing the default value, an empty dictionary More...
 

Detailed Description

Stores key-value string pairs that can configure certain Connext DDS parameters not exposed through QoS policies. It can also store and propagate through the discovery mechanism application-specific information associated with an Entity.

The full documentation is available in the C API: DDS_PropertyQosPolicy

Member Function Documentation

◆ FromDictionary() [1/3]

static Property Rti.Dds.Core.Policy.Property.FromDictionary ( IDictionary< string, Entry value)
static

Creates a Property object with the keys and entries in a Dictionary

Parameters
valueThe key-entry pairs

◆ FromDictionary() [2/3]

static Property Rti.Dds.Core.Policy.Property.FromDictionary ( IDictionary< string, string >  dict,
bool  propagate = false 
)
inlinestatic

Creates a Property object with the keys and values in a Dictionary, with all entries having the same Entry.Propagate value.

Parameters
dictThe key-value pairs
propagateWhether to propagate all or none of the properties in the dictionary

◆ FromDictionary() [3/3]

static Property Rti.Dds.Core.Policy.Property.FromDictionary ( PropertyDict  value)
static

Creates a Property object with the key-value pairs in a Dictionary

Parameters
valueThe key-value pairs

◆ With()

Property Rti.Dds.Core.Policy.Property.With ( Action< PropertyDict.Builder >  build)
inline

Creates a new Property with a set of changes specified in an Action

Parameters
buildAn action (typically a lambda function) that receives a dictionary builder containing the current properties and allows adding, removing, or replacing.
Returns
A new Property with the changes applied by the Action

◆ ToStringDictionary()

Dictionary< string, string > Rti.Dds.Core.Policy.Property.ToStringDictionary ( )
inline

Creates a string dictionary from the key-value pairs in this Property. The returned dictionary doesn't include the values of Entry.Propagate.

◆ Equals() [1/2]

override bool Rti.Dds.Core.Policy.Property.Equals ( object  other)

Compares for equality

◆ GetHashCode()

override int Rti.Dds.Core.Policy.Property.GetHashCode ( )

Gets the hash code of Value.

◆ Equals() [2/2]

bool Rti.Dds.Core.Policy.Property.Equals ( Property  other)
inline

Compares for equality

Property Documentation

◆ Value

PropertyDict Rti.Dds.Core.Policy.Property.Value
get

Gets the dictionary containing the properties

◆ Default

Property Rti.Dds.Core.Policy.Property.Default = new Property(PropertyDict.Empty)
staticget

Singleton containing the default value, an empty dictionary