Tekla Open API

Detailed and full API reference helps you master Tekla Open API

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

Identifier Class

The Identifier class represents an identifier that holds information about the identifier number of an object.
Inheritance Hierarchy
SystemObject
  Tekla.StructuresIdentifier

Namespace:  Tekla.Structures
Assembly:  Tekla.Structures (in Tekla.Structures.dll) Version: 2018.1.0.0 (2018.1.0.0)
Syntax
[SerializableAttribute]
public sealed class Identifier

The Identifier type exposes the following members.

Constructors
  Name Description
Public method Identifier
Constructs an empty identifier.
Public method Identifier(Guid)
Constructs an identifier with the given GUID.
Public method Identifier(Int32)
Constructs an identifier with the given ID.
Public method Identifier(String)
Constructs an identifier with the given GUID string.
Top
Properties
  Name Description
Public property GUID
The object's globally unique identifier. If the GUID value is set manually, the ID is initialized to 0 and the identification is done based on the GUID.
Public property ID
The identifier number. If the ID value is set manually, the GUID is initialized to Guid.Empty and the identification is done based on the ID.
Top
Methods
  Name Description
Public method Equals(Object)
Compares the identifier with another object instance.
(Overrides ObjectEquals(Object).)
Public method Equals(Identifier)
Compares the identifier with another identifier instance.
Public method GetHashCode
Gets the hash number of the identifier.
(Overrides ObjectGetHashCode.)
Public method IsValid
Returns true if the identifier seems to be valid. The validation is done based on the ID or GUID property.
Public method ToString
Returns the integer ID as a string.
(Overrides ObjectToString.)
Top
See Also