LuciadCPillar C# 2026.1.02
Loading...
Searching...
No Matches
Luciad.Models.Features.FeatureChange Class Reference

Represents a change for a feature. More...

Inheritance diagram for Luciad.Models.Features.FeatureChange:

Public Member Functions

 FeatureChange (Feature feature, FeatureChangeType featureChangeType)
 Constructs the feature change based on a feature instance and the type of change for the feature.
 FeatureChange (ulong featureId, FeatureChangeType featureChangeType)
 Constructs the feature change based on the id of the feature and the type of change for the feature.
bool Equals (FeatureChange other)
override bool Equals (object other)
override int GetHashCode ()

Static Public Member Functions

static bool operator!= (FeatureChange lhs, FeatureChange rhs)
static bool operator== (FeatureChange lhs, FeatureChange rhs)

Properties

Feature Feature [get]
 The changed feature, or null.
FeatureChangeType FeatureChangeType [get]
 The type of change.
ulong FeatureId [get]
 The id of the changed feature.

Detailed Description

Represents a change for a feature.

It indicates for a given feature, identified by its feature id, whether it has been added, updated, etc. It can optionally contain the actual feature instance rather than only the id of the feature. The benefit of the latter is that it may avoid performing queries on the IFeatureModel.

Constructor & Destructor Documentation

◆ FeatureChange() [1/2]

Luciad.Models.Features.FeatureChange.FeatureChange ( ulong featureId,
FeatureChangeType featureChangeType )
inline

Constructs the feature change based on the id of the feature and the type of change for the feature.

Parameters
featureIdthe id of the feature.
featureChangeTypethe type of change.

◆ FeatureChange() [2/2]

Luciad.Models.Features.FeatureChange.FeatureChange ( Feature feature,
FeatureChangeType featureChangeType )
inline

Constructs the feature change based on a feature instance and the type of change for the feature.

Parameters
featurethe feature.
featureChangeTypethe type of change.

Member Function Documentation

◆ Equals() [1/2]

bool Luciad.Models.Features.FeatureChange.Equals ( FeatureChange other)
inline

◆ Equals() [2/2]

override bool Luciad.Models.Features.FeatureChange.Equals ( object other)
inline

◆ GetHashCode()

override int Luciad.Models.Features.FeatureChange.GetHashCode ( )
inline

◆ operator!=()

bool Luciad.Models.Features.FeatureChange.operator!= ( FeatureChange lhs,
FeatureChange rhs )
inlinestatic

◆ operator==()

bool Luciad.Models.Features.FeatureChange.operator== ( FeatureChange lhs,
FeatureChange rhs )
inlinestatic

Property Documentation

◆ Feature

Feature Luciad.Models.Features.FeatureChange.Feature
get

The changed feature, or null.

[get]

Returns the changed feature, or null. If no value is available, the model can be queried to retrieve it. In case of a FeatureChangeType.Remove change type, this method will always return null.

◆ FeatureChangeType

FeatureChangeType Luciad.Models.Features.FeatureChange.FeatureChangeType
get

The type of change.

[get]

Returns the type of change.

◆ FeatureId

ulong Luciad.Models.Features.FeatureChange.FeatureId
get

The id of the changed feature.

[get]

Returns the id of the changed feature. When this class is used as part of FeatureModelUpdate, the feature id will not always be available. This method will throw an exception in that case. Use FeatureChange.Feature in that case. See FeatureModelUpdate.Builder.AddFeature for more information.

In all other cases, this method will not thrown an exception.

Exceptions
System.InvalidOperationExceptionwhen the feature has no id.