InedoSDK Reference
Version:

RaftItem2 Class

Represents an item contained in a raft.

Inheritance Hierarchy

  • object
    • Inedo.Extensibility.RaftRepositories.RaftItem2

Syntax

public class RaftItem2 : IEquatable<T>

Constructors

Name Description
RaftItem2(RaftItemType type, string name)

Initializes a new instance of the RaftItem2 class.

Properties

Name Description
ItemName

Gets the name of the item.

ItemSize

Gets the size of the item in bytes.

ItemType

Gets the type of the item.

ItemVersion

Gets the version of the item if applicable.

LastWriteTime

Gets the last write time.

ModifiedByUser

Gets the name of the user who last modified this item.

Methods

Name Description
Equals(object obj)
GetHashCode
OpenRead

Returns a System.IO.Stream backed by the raft item's content.

OpenTextReader

Returns a System.IO.TextReader backed by the raft item's content.

ReadAllBytes

Returns a byte array containing the raft item's content.

ReadAllText

Returns the raft item's content as a string.