RTI Connext C# API  6.1.2
OwnershipStrength Class Reference

Specifies the value of the strength used to arbitrate among multiple Publication.DataWriter<T> objects that attempt to modify the same instance of a data type. More...

Inherits IEquatable< OwnershipStrength >.

Public Member Functions

 OwnershipStrength (int value)
 Creates a new OwnershipStrength object using its value More...
 
OwnershipStrength With (Action< OwnershipStrengthBuilder > build)
 Creates a new OwnershipStrength with a set of changes specified in an Action More...
 
override int GetHashCode ()
 Gets the hash code More...
 
override bool Equals (object other)
 Compares for equality More...
 
bool Equals (OwnershipStrength other)
 Compares for equality More...
 

Properties

int Value [get]
 The strength value used to arbitrate among multiple writers. More...
 
static OwnershipStrength Default [get]
 Singleton containing the default value of a OwnershipStrength More...
 

Detailed Description

Specifies the value of the strength used to arbitrate among multiple Publication.DataWriter<T> objects that attempt to modify the same instance of a data type.

The full documentation is available in the C API: DDS_OwnershipStrengthQosPolicy

Constructor & Destructor Documentation

◆ OwnershipStrength()

OwnershipStrength ( int  value)

Creates a new OwnershipStrength object using its value

Member Function Documentation

◆ Equals() [1/2]

override bool Equals ( object  other)

Compares for equality

◆ Equals() [2/2]

bool Equals ( OwnershipStrength  other)

Compares for equality

◆ GetHashCode()

override int GetHashCode ( )

Gets the hash code

◆ With()

OwnershipStrength With ( Action< OwnershipStrengthBuilder build)

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

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

Property Documentation

◆ Default

OwnershipStrength Default
staticget

Singleton containing the default value of a OwnershipStrength

◆ Value

int Value
get

The strength value used to arbitrate among multiple writers.

The full documentation is available in the C API: DDS_OwnershipStrengthQosPolicy::value