VirtualStorageLibrary
Search Results for

    Show / Hide Table of Contents

    Class VirtualNodeContext

    A class that holds context information for a node. It is returned during or after path traversal, providing information about the node, path, parent directory, depth, index, resolved path, and symbolic link.

    Inheritance
    object
    VirtualNodeContext
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: AkiraNetwork.VirtualStorageLibrary
    Assembly: VirtualStorageLibrary.dll
    Syntax
    public class VirtualNodeContext

    Constructors

    VirtualNodeContext(VirtualNode?, VirtualPath, VirtualDirectory?, int, int, VirtualPath?, bool, VirtualSymbolicLink?)

    Initializes a new instance of the VirtualNodeContext class.

    Declaration
    public VirtualNodeContext(VirtualNode? node, VirtualPath traversalPath, VirtualDirectory? parentNode = null, int depth = 0, int index = 0, VirtualPath? resolvedPath = null, bool resolved = false, VirtualSymbolicLink? resolvedLink = null)
    Parameters
    Type Name Description
    VirtualNode node

    The node being traversed.

    VirtualPath traversalPath

    The path used for node traversal.

    VirtualDirectory parentNode

    The parent directory of the node.

    int depth

    The depth of the node. The root is considered 0.

    int index

    The index of the node. Corresponds to the enumeration order within the directory.

    VirtualPath resolvedPath

    The result of resolving a symbolic link.

    bool resolved

    Indicates whether the symbolic link has been resolved.

    VirtualSymbolicLink resolvedLink

    The resolved symbolic link.

    Properties

    Depth

    Gets the depth of the node and can only be set within the assembly. The root is considered 0.

    Declaration
    public int Depth { get; }
    Property Value
    Type Description
    int

    The depth of the node.

    Index

    Gets the index of the node and can only be set within the assembly. This is the index corresponding to the enumeration order within the directory.

    Declaration
    public int Index { get; }
    Property Value
    Type Description
    int

    The index of the node.

    Node

    Gets the node and can only be set within the assembly.

    Declaration
    public VirtualNode? Node { get; }
    Property Value
    Type Description
    VirtualNode

    The current node.

    ParentDirectory

    Gets the parent directory of the node and can only be set within the assembly.

    Declaration
    public VirtualDirectory? ParentDirectory { get; }
    Property Value
    Type Description
    VirtualDirectory

    The instance of the parent directory.

    Resolved

    Gets a value indicating whether the symbolic link has been resolved and can only be set within the assembly.

    Declaration
    public bool Resolved { get; }
    Property Value
    Type Description
    bool

    True if the link is resolved; otherwise, false.

    ResolvedLink

    Gets the resolved symbolic link and can only be set within the assembly.

    Declaration
    public VirtualSymbolicLink? ResolvedLink { get; }
    Property Value
    Type Description
    VirtualSymbolicLink

    The resolved symbolic link, or null.

    ResolvedPath

    Gets the resolved path and can only be set within the assembly. This represents the result of resolving a symbolic link.

    Declaration
    public VirtualPath? ResolvedPath { get; }
    Property Value
    Type Description
    VirtualPath

    The resolved path, or null.

    TraversalPath

    Gets the traversal path and can only be set within the assembly.

    Declaration
    public VirtualPath TraversalPath { get; }
    Property Value
    Type Description
    VirtualPath

    The path used for node traversal.

    Methods

    ToString()

    Returns a string representation of this instance's information.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representing this instance's information.

    Overrides
    object.ToString()

    Extension Methods

    VirtualTextFormatter.GenerateSingleTableDebugText<T>(T)
    In this article
    Back to top Generated by DocFX