Zum Hauptinhalt springen

RtCkId<TElementId>

Namespace: Meshmakers.Octo.ConstructionKit.Contracts

Represents a runtime construction kit id, that versions the element key but not the model id

public record RtCkId<TElementId> : IComparable<RtCkId<TElementId>>, IEquatable<RtCkId<TElementId>>

Type Parameters​

TElementId
The key type that is managed with a model id

Inheritance Object → RtCkId<TElementId>
Implements IComparable<RtCkId<TElementId>>, IEquatable<RtCkId<TElementId>>

Properties​

ModelId​

Returns the name of the model, e.g. "System"

public string ModelId { get; }

Property Value​

String

ElementId​

Returns the element key

public TElementId ElementId { get; }

Property Value​

TElementId

FullName​

Returns the full name of the element, e.g. "System/Person-1"

public string FullName { get; }

Property Value​

String

SemanticVersionedFullName​

Returns the semantic versioned name of the element, e.g. "System/Person-2"

public string SemanticVersionedFullName { get; }

Property Value​

String

IsEmpty​

Returns true if the model id and key is empty

public bool IsEmpty { get; }

Property Value​

Boolean

Constructors​

RtCkId(String, TElementId)​

Creates a new RtCkId<TElementId> from the given modelId and elementId.

public RtCkId(string modelId, TElementId elementId)

Parameters​

modelId String

elementId TElementId

RtCkId(String)​

Creates a new RtCkId<TElementId> from the given ckId.

public RtCkId(string ckId)

Parameters​

ckId String

Exceptions​

ArgumentOutOfRangeException

Methods​

Equals(RtCkId<TElementId>)​

public bool Equals(RtCkId<TElementId> other)

Parameters​

other RtCkId<TElementId>

Returns​

Boolean

Equals(CkId<TElementId>)​

Indicates whether the current object is equal to another object of the same type, ignoring the model version.

public bool Equals(CkId<TElementId> other)

Parameters​

other CkId<TElementId>
The object to compare with this object.

Returns​

Boolean
>true if the current object is equal to the other parameter; otherwise, false.

CompareTo(RtCkId<TElementId>)​

public int CompareTo(RtCkId<TElementId> other)

Parameters​

other RtCkId<TElementId>

Returns​

Int32

GetHashCode()​

public int GetHashCode()

Returns​

Int32

ToString()​

Returns a string representation of the value.

public string ToString()

Returns​

String