5 implementations of TryGetData
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
108
public bool
TryGetData
<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
637
public bool
TryGetData
<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System\Windows\Forms\OLE\DataObject.cs (1)
279
public bool
TryGetData
<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
206
public bool
TryGetData
<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataObjectExtensionsTests.cs (1)
247
public bool
TryGetData
<T>(string format, bool autoConvert, [MaybeNullWhen(false), NotNullWhen(true)] out T data)
3 references to TryGetData
System.Windows.Forms (3)
System\Windows\Forms\OLE\Clipboard.cs (1)
476
return typed.
TryGetData
(format, autoConvert: true, out T? value) ? value : default;
System\Windows\Forms\OLE\DataObjectExtensions.cs (2)
42
/// <inheritdoc cref="ITypedDataObject.
TryGetData
{T}(string, bool, out T)"/>
50
GetTypedDataObjectOrThrow(dataObject).
TryGetData
(format, autoConvert, out data);