Show / Hide Table of Contents

Class Hook

Represents a unique hook identified by its owning entity (account or contract) and a numeric identifier.

Inheritance
object
Hook
Implements
IEquatable<Hook>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record Hook : IEquatable<Hook>
Remarks

Modeled similarly to Nft, this class consists of an EntityId representing the owning account or contract and a numeric identifier chosen by the hook's creator. This class is immutable once created.

Constructors

| Edit this page View Source

Hook(EntityId, long)

Public Constructor, a 
Hook

is immutable after creation.

Declaration
public Hook(EntityId owner, long id)
Parameters
Type Name Description
EntityId owner

The account or contract that owns this hook.

long id

The numeric identifier of the hook within the owning entity.

Properties

| Edit this page View Source

Id

The numeric identifier of the hook within the owning entity's scope.

Declaration
public long Id { get; }
Property Value
Type Description
long
| Edit this page View Source

None

A sentinel value representing an uninitialized or non-existent hook.

Declaration
public static Hook None { get; }
Property Value
Type Description
Hook
| Edit this page View Source

Owner

The account or contract that owns this hook.

Declaration
public EntityId Owner { get; }
Property Value
Type Description
EntityId

Implements

IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph