CkAttributeId
Namespace: Meshmakers.Octo.ConstructionKit.Contracts
Represents a versioned construction kit attribute id
public record CkAttributeId : IComparable<CkAttributeId>, ICkElementId, IConvertible, IEquatable<CkAttributeId>
Inheritance Object → CkAttributeId
Implements IComparable<CkAttributeId>, ICkElementId, IConvertible, IEquatable<CkAttributeId>
Properties
Name
Defines the name of the attribute, e.g. "Designation"
public string Name { get; }
Property Value
Version
Returns the version of the attribute, e.g. 1
public uint Version { get; }
Property Value
FullName
Returns the full name of the attribute, e.g. "Designation-1"
public string FullName { get; }
Property Value
SemanticVersionedFullName
public string SemanticVersionedFullName { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
Constructors
CkAttributeId(String)
Creates a new CkAttributeId from the given name.
public CkAttributeId(string name)
Parameters
name String
Exceptions
CkAttributeId(String, UInt32)
Creates a new CkAttributeId from the given name and attributeVersion.
public CkAttributeId(string name, uint attributeVersion)
Parameters
name String
attributeVersion UInt32
Methods
CompareTo(CkAttributeId)
public int CompareTo(CkAttributeId other)
Parameters
other CkAttributeId
Returns
GetTypeCode()
public TypeCode GetTypeCode()
Returns
ToBoolean(IFormatProvider)
public bool ToBoolean(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToByte(IFormatProvider)
public byte ToByte(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToChar(IFormatProvider)
public char ToChar(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToDateTime(IFormatProvider)
public DateTime ToDateTime(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToDecimal(IFormatProvider)
public decimal ToDecimal(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToDouble(IFormatProvider)
public double ToDouble(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToInt16(IFormatProvider)
public short ToInt16(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToInt32(IFormatProvider)
public int ToInt32(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToInt64(IFormatProvider)
public long ToInt64(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToSByte(IFormatProvider)
public sbyte ToSByte(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToSingle(IFormatProvider)
public float ToSingle(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToString(IFormatProvider)
public string ToString(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToType(Type, IFormatProvider)
public object ToType(Type conversionType, IFormatProvider provider)
Parameters
conversionType Type
provider IFormatProvider
Returns
ToUInt16(IFormatProvider)
public ushort ToUInt16(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToUInt32(IFormatProvider)
public uint ToUInt32(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToUInt64(IFormatProvider)
public ulong ToUInt64(IFormatProvider provider)
Parameters
provider IFormatProvider
Returns
ToString()
Returns a string representation of the value.
public string ToString()
Returns
String
A string representation of the value.
GetHashCode()
public int GetHashCode()
Returns
Equals(CkAttributeId)
public bool Equals(CkAttributeId other)
Parameters
other CkAttributeId