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

Defines the rules that determine whether the type used to publish a given Topics.Topic<T> is consistent with that used to subscribe to it. More...

Inherits IEquatable< TypeConsistencyEnforcement >.

Public Member Functions

TypeConsistencyEnforcement With (Action< TypeConsistencyEnforcementBuilder > build)
 Creates a new TypeConsistencyEnforcement 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 (TypeConsistencyEnforcement other)
 Compares for equality More...
 

Properties

TypeConsistencyKind Kind [get]
 Type consistency kind. More...
 
bool IgnoreSequenceBounds [get]
 Controls whether sequence bounds are taken into consideration for type assignability. More...
 
bool IgnoreStringBounds [get]
 Controls whether string bounds are taken into consideration for type assignability. More...
 
bool IgnoreMemberNames [get]
 Controls whether member names are taken into consideration for type assignability. More...
 
bool PreventTypeWidening [get]
 Controls whether type widening is allowed. More...
 
bool ForceTypeValidation [get]
 Controls whether type information must be available in order to complete matching between a Publication.DataWriter<T> and a Subscription.DataReader<T>. More...
 
bool IgnoreEnumLiteralNames [get]
 Controls whether enumeration constant names are taken into consideration for type assignability. More...
 
static TypeConsistencyEnforcement Default [get]
 Singleton containing the default value of a TypeConsistencyEnforcement More...
 

Detailed Description

Defines the rules that determine whether the type used to publish a given Topics.Topic<T> is consistent with that used to subscribe to it.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy

Member Function Documentation

◆ With()

TypeConsistencyEnforcement Rti.Dds.Core.Policy.TypeConsistencyEnforcement.With ( Action< TypeConsistencyEnforcementBuilder build)
inline

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

◆ GetHashCode()

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

Gets the hash code

◆ Equals() [1/2]

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

Compares for equality

◆ Equals() [2/2]

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

Compares for equality

Property Documentation

◆ Kind

TypeConsistencyKind Rti.Dds.Core.Policy.TypeConsistencyEnforcement.Kind
get

Type consistency kind.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy_kind

◆ IgnoreSequenceBounds

bool Rti.Dds.Core.Policy.TypeConsistencyEnforcement.IgnoreSequenceBounds
get

Controls whether sequence bounds are taken into consideration for type assignability.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy_ignore_sequence_bounds

◆ IgnoreStringBounds

bool Rti.Dds.Core.Policy.TypeConsistencyEnforcement.IgnoreStringBounds
get

Controls whether string bounds are taken into consideration for type assignability.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy_ignore_string_bounds

◆ IgnoreMemberNames

bool Rti.Dds.Core.Policy.TypeConsistencyEnforcement.IgnoreMemberNames
get

Controls whether member names are taken into consideration for type assignability.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy_ignore_member_names

◆ PreventTypeWidening

bool Rti.Dds.Core.Policy.TypeConsistencyEnforcement.PreventTypeWidening
get

Controls whether type widening is allowed.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy_prevent_type_widening

◆ ForceTypeValidation

bool Rti.Dds.Core.Policy.TypeConsistencyEnforcement.ForceTypeValidation
get

Controls whether type information must be available in order to complete matching between a Publication.DataWriter<T> and a Subscription.DataReader<T>.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy_force_type_validation

◆ IgnoreEnumLiteralNames

bool Rti.Dds.Core.Policy.TypeConsistencyEnforcement.IgnoreEnumLiteralNames
get

Controls whether enumeration constant names are taken into consideration for type assignability.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy_ignore_enum_literal_names

◆ Default

TypeConsistencyEnforcement Rti.Dds.Core.Policy.TypeConsistencyEnforcement.Default
staticget

Singleton containing the default value of a TypeConsistencyEnforcement