20 references to TryGetData
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\ClipboardProxy.vb (1)
202
Return Clipboard.
TryGetData
(format, data)
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (2)
98
clipboard.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)
259
Clipboard.
TryGetData
("MyData", out string? data).Should().BeFalse();
549
Clipboard.
TryGetData
(format, out NotSupportedException? exception).Should().BeTrue();
720
Clipboard.
TryGetData
("TestData", out int? data).Should().BeTrue();
742
Action tryGetData = () => Clipboard.
TryGetData
(format, out testData);
800
Action tryGetData = () => Clipboard.
TryGetData
(format, out object? data);
822
Action tryGetData = () => Clipboard.
TryGetData
(format, out object? data);
834
Action tryGetData = () => Clipboard.
TryGetData
(format, out object? data);
877
Action tryGetData = () => Clipboard.
TryGetData
("test", out uint[,]? data);
926
Clipboard.
TryGetData
(format, out List<Point>? points).Should().BeTrue();
936
Clipboard.
TryGetData
(format, out List<int>? intList).Should().BeTrue();
999
Clipboard.
TryGetData
("testData1", out SimpleTestData deserializedTestData1).Should().BeTrue();
1001
Clipboard.
TryGetData
("testData2", out SimpleTestData deserializedTestData2).Should().BeTrue();
1003
Clipboard.
TryGetData
("Mystring", out string? deserializedString).Should().BeTrue();
1079
Action a2 = () => Clipboard.
TryGetData
(format, out Font? _);