Search Results for

    Show / Hide Table of Contents

    Class DriveItemService

    Inheritance
    object
    CrudServiceBase<GraphClient>
    DriveItemService
    Implements
    ICrudService
    Inherited Members
    CrudServiceBase<GraphClient>.client
    CrudServiceBase<GraphClient>.ApiKey
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Microsoft.Graph
    Assembly: Glitch9.AIDevKit.Provider.Microsoft.Graph.dll
    Syntax
    public sealed class DriveItemService : CrudServiceBase<GraphClient>, ICrudService

    Constructors

    | Edit this page View Source

    DriveItemService(GraphClient)

    Declaration
    public DriveItemService(GraphClient client)
    Parameters
    Type Name Description
    GraphClient client

    Methods

    | Edit this page View Source

    DownloadContentAsync(string, string, string, string, CancellationToken)

    Downloads file content to disk using streaming. Handles large files and 302 redirects (Graph download URLs).

    Declaration
    public UniTask DownloadContentAsync(string driveId, string itemId, string outputPath, string format, CancellationToken ct = default)
    Parameters
    Type Name Description
    string driveId
    string itemId
    string outputPath
    string format
    CancellationToken ct
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    DownloadContentAsync(string, string, string, CancellationToken)

    Declaration
    public UniTask DownloadContentAsync(string driveId, string itemId, string outputPath, CancellationToken ct = default)
    Parameters
    Type Name Description
    string driveId
    string itemId
    string outputPath
    CancellationToken ct
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    GetItemAsync(string, string, CancellationToken)

    Declaration
    public UniTask<DriveItem> GetItemAsync(string driveId, string itemId, CancellationToken ct = default)
    Parameters
    Type Name Description
    string driveId
    string itemId
    CancellationToken ct
    Returns
    Type Description
    UniTask<DriveItem>
    | Edit this page View Source

    ListChildrenAsync(string, string, int, CancellationToken)

    Declaration
    public UniTask<GraphCollectionResponse<DriveItem>> ListChildrenAsync(string driveId, string itemId, int pageSize, CancellationToken ct = default)
    Parameters
    Type Name Description
    string driveId
    string itemId
    int pageSize
    CancellationToken ct
    Returns
    Type Description
    UniTask<GraphCollectionResponse<DriveItem>>
    | Edit this page View Source

    ListChildrenByPathAsync(string, string, int, CancellationToken)

    Declaration
    public UniTask<GraphCollectionResponse<DriveItem>> ListChildrenByPathAsync(string driveId, string path, int pageSize, CancellationToken ct = default)
    Parameters
    Type Name Description
    string driveId
    string path
    int pageSize
    CancellationToken ct
    Returns
    Type Description
    UniTask<GraphCollectionResponse<DriveItem>>
    | Edit this page View Source

    ListRootChildrenAsync(string, int, CancellationToken)

    Declaration
    public UniTask<GraphCollectionResponse<DriveItem>> ListRootChildrenAsync(string driveId, int pageSize, CancellationToken ct = default)
    Parameters
    Type Name Description
    string driveId
    int pageSize
    CancellationToken ct
    Returns
    Type Description
    UniTask<GraphCollectionResponse<DriveItem>>

    Implements

    ICrudService

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation