PstNodeInfo Class
Definition
Provides an immutable snapshot of a node's directory facts: its identifier, its parent, the size of its data payload, and whether it carries a subnode tree.
public sealed record PstNodeInfo : IEquatable<PstNodeInfo>
- Inheritance
-
PstNodeInfo
- Implements
- Inherited Members
- Extension Methods
Constructors
PstNodeInfo(PstNodeId, PstNodeId, long, bool)
Provides an immutable snapshot of a node's directory facts: its identifier, its parent, the size of its data payload, and whether it carries a subnode tree.
public PstNodeInfo(PstNodeId NodeId, PstNodeId ParentNodeId, long DataLength, bool HasSubnodes)
Parameters
NodeIdPstNodeIdThe node identifier.
ParentNodeIdPstNodeIdThe parent node identifier the node database records, or the zero identifier when none is recorded. For a subnode, this is the owning node's identifier.
DataLengthlongThe total data payload length in bytes;
0when the node carries no data.HasSubnodesboolWhether the node carries a subnode tree.
Properties
DataLength
The total data payload length in bytes; 0 when the node carries no data.
public long DataLength { get; init; }
Property Value
HasSubnodes
Whether the node carries a subnode tree.
public bool HasSubnodes { get; init; }
Property Value
NodeId
The node identifier.
public PstNodeId NodeId { get; init; }
Property Value
ParentNodeId
The parent node identifier the node database records, or the zero identifier when none is recorded. For a subnode, this is the owning node's identifier.
public PstNodeId ParentNodeId { get; init; }
Property Value
Methods
Deconstruct(out PstNodeId, out PstNodeId, out long, out bool)
public void Deconstruct(out PstNodeId NodeId, out PstNodeId ParentNodeId, out long DataLength, out bool HasSubnodes)
Parameters
Equals(PstNodeInfo?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PstNodeInfo? other)
Parameters
otherPstNodeInfoAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(PstNodeInfo?, PstNodeInfo?)
public static bool operator ==(PstNodeInfo? left, PstNodeInfo? right)
Parameters
leftPstNodeInforightPstNodeInfo
Returns
operator !=(PstNodeInfo?, PstNodeInfo?)
public static bool operator !=(PstNodeInfo? left, PstNodeInfo? right)
Parameters
leftPstNodeInforightPstNodeInfo
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |