RTI Connext C# API  6.1.2
KeyedStringTopicType Class Reference

An keyed topic-type containing two strings: a key and a value. This type can be used to instantiate a Rti.Dds.Topics.Topic<T>. More...

Inherits IEquatable< KeyedStringTopicType >.

Public Member Functions

 KeyedStringTopicType ()
 Creates an instance with two empty strings More...
 
 KeyedStringTopicType (string Key, string Value)
 Creates an instance with the given key and value More...
 
 KeyedStringTopicType (KeyedStringTopicType other)
 Creates an instance with the same strings as another instance More...
 
override int GetHashCode ()
 Gets the hashcode More...
 
bool Equals (KeyedStringTopicType other)
 Compares for equality More...
 
override bool Equals (object obj)
 Compares for equality More...
 
override string ToString ()
 Converts to string More...
 

Properties

string Key [get, set]
 The key (its maximum size is 1024 bytes in UTF-8 format) More...
 
string Value [get, set]
 The value (its maximum size is 1024 bytes in UTF-8 format) More...
 

Detailed Description

An keyed topic-type containing two strings: a key and a value. This type can be used to instantiate a Rti.Dds.Topics.Topic<T>.

This type is equivalent to the following IDL type:

@key string<1024> key;
string<1024> value;
};
KeyedStringTopicType()
Creates an instance with two empty strings
Definition: KeyedStringTopicType.cs:53

Note that the maximum size maximum size of each string is 1024 bytes in UTF-8 format.

Constructor & Destructor Documentation

◆ KeyedStringTopicType() [1/3]

Creates an instance with two empty strings

◆ KeyedStringTopicType() [2/3]

KeyedStringTopicType ( string  Key,
string  Value 
)

Creates an instance with the given key and value

◆ KeyedStringTopicType() [3/3]

Creates an instance with the same strings as another instance

Member Function Documentation

◆ Equals() [1/2]

bool Equals ( KeyedStringTopicType  other)

Compares for equality

◆ Equals() [2/2]

override bool Equals ( object  obj)

Compares for equality

◆ GetHashCode()

override int GetHashCode ( )

Gets the hashcode

◆ ToString()

override string ToString ( )

Converts to string

Property Documentation

◆ Key

string Key
getset

The key (its maximum size is 1024 bytes in UTF-8 format)

◆ Value

string Value
getset

The value (its maximum size is 1024 bytes in UTF-8 format)