5 implementations of TryGetData
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
114
public bool
TryGetData
<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
643
public bool
TryGetData
<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System\Windows\Forms\OLE\DataObject.cs (1)
285
public bool
TryGetData
<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
212
public bool
TryGetData
<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataObjectExtensionsTests.cs (1)
240
public bool
TryGetData
<T>(string format, [MaybeNullWhen(false), NotNullWhen(true)] out T data)
8 references to TryGetData
ComDisabled.Tests (3)
ClipboardComTests.cs (2)
34
dataObject.
TryGetData
("testData", out SimpleTestData deserialized).Should().BeTrue();
50
returnedDataObject.
TryGetData
("testData", out SimpleTestData deserialized).Should().BeTrue();
DataObjectComTests.cs (1)
32
typedOutData.
TryGetData
("testData", out SimpleTestData deserialized).Should().BeTrue();
System.Windows.Forms (3)
System\Windows\Forms\OLE\Clipboard.cs (1)
407
return GetTypedDataObject<T>(format, out ITypedDataObject? typed) && typed.
TryGetData
(format, out data);
System\Windows\Forms\OLE\DataObjectExtensions.cs (2)
33
/// <inheritdoc cref="ITypedDataObject.
TryGetData
{T}(string, out T)"/>
40
GetTypedDataObjectOrThrow(dataObject).
TryGetData
(format, out data);
System.Windows.Forms.Tests (2)
System\Windows\Forms\ClipboardTests.cs (1)
982
returnedDataObject.
TryGetData
("testDataFormat", out SimpleTestData deserialized).Should().BeTrue();
System\Windows\Forms\DataObjectTests.cs (1)
2746
typedOutData.
TryGetData
("point", out Point deserialized).Should().BeTrue();