20 references to TryGetData
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\ClipboardProxy.vb (1)
202Return Clipboard.TryGetData(format, data)
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (2)
98clipboard.TryGetData(format, out SimpleTestData retrieved).Should().Be(System.Windows.Forms.Clipboard.TryGetData(format, out SimpleTestData retrieved2)); 120.Be(System.Windows.Forms.Clipboard.TryGetData(format, out string[]? expected));
System.Windows.Forms (3)
System\Windows\Forms\OLE\DataObject.cs (1)
53/// <see cref="Clipboard.TryGetData{T}(string, out T)"/> will throw <see cref="NotSupportedException"/>
System\Windows\Forms\OLE\IDataObject.cs (1)
15/// such as <see cref="Clipboard.TryGetData{T}(string, out T)"/>, will throw a <see cref="NotSupportedException"/>.
System\Windows\Forms\OLE\ITypedDataObject.cs (1)
14/// Implement this interface to use your data object with <see cref="Clipboard.TryGetData{T}(string, out T)"/>
System.Windows.Forms.Tests (14)
System\Windows\Forms\ClipboardTests.cs (14)
259Clipboard.TryGetData("MyData", out string? data).Should().BeFalse(); 549Clipboard.TryGetData(format, out NotSupportedException? exception).Should().BeTrue(); 720Clipboard.TryGetData("TestData", out int? data).Should().BeTrue(); 742Action tryGetData = () => Clipboard.TryGetData(format, out testData); 800Action tryGetData = () => Clipboard.TryGetData(format, out object? data); 822Action tryGetData = () => Clipboard.TryGetData(format, out object? data); 834Action tryGetData = () => Clipboard.TryGetData(format, out object? data); 877Action tryGetData = () => Clipboard.TryGetData("test", out uint[,]? data); 926Clipboard.TryGetData(format, out List<Point>? points).Should().BeTrue(); 936Clipboard.TryGetData(format, out List<int>? intList).Should().BeTrue(); 999Clipboard.TryGetData("testData1", out SimpleTestData deserializedTestData1).Should().BeTrue(); 1001Clipboard.TryGetData("testData2", out SimpleTestData deserializedTestData2).Should().BeTrue(); 1003Clipboard.TryGetData("Mystring", out string? deserializedString).Should().BeTrue(); 1079Action a2 = () => Clipboard.TryGetData(format, out Font? _);