net10.0-windows10.0.22621
namespace System.Windows.Forms
{
    [ClassInterface(ClassInterfaceType.None)]
    public class DataObject : IDataObject, IDataObject, ITypedDataObject
    {
        [RequiresUnreferencedCode("Uses default System.Text.Json behavior which is not trim-compatible.")]
        public void SetDataAsJson<T>(T data);
    }
}
.NET
10.0
Information specific to net10.0
Platforms This API is only available when you target a specific platform:
Windows
7.08.010.0.1776310.0.1836210.0.1904110.0.2034810.0.2200010.0.22621
Information specific to net10.0-windows10.0.22621
Assembly

System.Windows.Forms , Version=10.0.0.0, PublicKeyToken=b77a5c561934e089

Referencing

Your project needs to set <UseWindowsForms>True</UseWindowsForms>.

Preview The API is contained in a preview framework.
Platform Restrictions

This API is only supported on the following platforms:

  • Windows >= 6.1
  • Built-in API
  • Package-provided API