RTI Connext C# API Version 7.2.0
Rti.Dds.Core.Policy.EntityName Class Reference

Assigns a name and a role name to a Domain.DomainParticipant, Publication.Publisher, Subscription.Subscriber, Publication.DataWriter<T> or Subscription.DataReader<T>. Except for Publication.Publisher and Subscription.Subscriber, these names will be visible during the discovery process and in RTI tools to help you visualize and debug your system. More...

Inherits IEquatable< EntityName >.

Public Member Functions

 EntityName ([AllowNull] string name, [AllowNull] string roleName=null)
 Creates a new EntityName policy More...
 
EntityName With (Action< EntityNameBuilder > build)
 Creates a new EntityName with a set of changes specified in an Action More...
 
override bool Equals (object other)
 Compares for equality More...
 
override int GetHashCode ()
 Gets the hash code More...
 
bool Equals (EntityName other)
 Compares for equality More...
 
override string ToString ()
 Returns a string representation More...
 

Static Public Member Functions

static implicit operator EntityName (string name)
 Implicit conversion from a string to an EntityName (with null RoleName) More...
 

Properties

string Name [get]
 Gets the value of Name More...
 
string RoleName [get]
 Gets the value of RoleName More...
 
static EntityName Default = CreateDefault() [get]
 Singleton containing the default value of a EntityName More...
 

Detailed Description

Assigns a name and a role name to a Domain.DomainParticipant, Publication.Publisher, Subscription.Subscriber, Publication.DataWriter<T> or Subscription.DataReader<T>. Except for Publication.Publisher and Subscription.Subscriber, these names will be visible during the discovery process and in RTI tools to help you visualize and debug your system.

The full documentation is available in the C API: DDS_EntityNameQosPolicy

Constructor & Destructor Documentation

◆ EntityName()

Rti.Dds.Core.Policy.EntityName.EntityName ( [AllowNull] string  name,
[AllowNull] string  roleName = null 
)
inline

Creates a new EntityName policy

Parameters
nameThe entity name (can be null)
roleNameThe role name (can be null)

Member Function Documentation

◆ With()

EntityName Rti.Dds.Core.Policy.EntityName.With ( Action< EntityNameBuilder build)
inline

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

Parameters
buildAn Action (typically a lambda function) that receives a modifiable object with the values of this EntityName.
Returns
A new EntityName with the changes applied by the Action

◆ Equals() [1/2]

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

Compares for equality

◆ GetHashCode()

override int Rti.Dds.Core.Policy.EntityName.GetHashCode ( )
inline

Gets the hash code

◆ Equals() [2/2]

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

Compares for equality

◆ ToString()

override string Rti.Dds.Core.Policy.EntityName.ToString ( )

Returns a string representation

◆ operator EntityName()

static implicit Rti.Dds.Core.Policy.EntityName.operator EntityName ( string  name)
static

Implicit conversion from a string to an EntityName (with null RoleName)

Parameters
nameThe entity name

Property Documentation

◆ Name

string Rti.Dds.Core.Policy.EntityName.Name
get

Gets the value of Name

The full documentation is available in the C API: DDS_EntityNameQosPolicy_name

◆ RoleName

string Rti.Dds.Core.Policy.EntityName.RoleName
get

Gets the value of RoleName

The full documentation is available in the C API: DDS_EntityNameQosPolicy_role_name

◆ Default

EntityName Rti.Dds.Core.Policy.EntityName.Default = CreateDefault()
staticget

Singleton containing the default value of a EntityName