RTI Connext C# API  7.0.0
Ownership Class Reference

Specifies whether it is allowed for multiple Publication.DataWriter<T> entities to write the same instance of the data and if so, how these modifications should be arbitrated. More...

Inherits IEquatable< Ownership >.

Public Member Functions

 Ownership (OwnershipKind kind)
 Creates a new instance More...
 
Ownership With (Action< OwnershipBuilder > build)
 Creates a new Ownership 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 (Ownership other)
 Compares for equality More...
 

Properties

OwnershipKind Kind [get]
 The kind of ownership More...
 
static Ownership Default [get]
 Singleton containing the default value of a Ownership More...
 

Detailed Description

Specifies whether it is allowed for multiple Publication.DataWriter<T> entities to write the same instance of the data and if so, how these modifications should be arbitrated.

Constructor & Destructor Documentation

◆ Ownership()

Creates a new instance

Parameters
kindThe value for Kind

Member Function Documentation

◆ Equals() [1/2]

override bool Equals ( object  other)

Compares for equality

◆ Equals() [2/2]

bool Equals ( Ownership  other)

Compares for equality

◆ GetHashCode()

override int GetHashCode ( )

Gets the hash code

◆ With()

Ownership With ( Action< OwnershipBuilder build)

Creates a new Ownership 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 Ownership.
Returns
A new Ownership with the changes applied by the Action

Property Documentation

◆ Default

Ownership Default
staticget

Singleton containing the default value of a Ownership

◆ Kind

OwnershipKind Kind
get

The kind of ownership

The full documentation is available in the C API: DDS_OwnershipQosPolicy::kind