File: Web\DataTransferItem.cs
Web Access
Project: src\src\Components\Web\src\Microsoft.AspNetCore.Components.Web.csproj (Microsoft.AspNetCore.Components.Web)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Components.Web;
 
/// <summary>
/// The <see cref="DataTransferItem"/> object represents one drag data item.
/// During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items.
/// Each item in the list is a <see cref="DataTransferItem"/> object.
/// </summary>
public class DataTransferItem
{
    /// <summary>
    /// The kind of drag data item, string or file
    /// </summary>
    public string Kind { get; set; } = default!;
 
    /// <summary>
    /// The drag data item's type, typically a MIME type
    /// </summary>
    public string Type { get; set; } = default!;
}