ReadOnlyMemory2D<T>.TryCopyTo Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| TryCopyTo(Memory2D<T>) | 
						 Attempts to copy the current ReadOnlyMemory2D<T> instance to a destination Memory2D<T>. For this API to succeed, the target Memory2D<T> has to have the same shape as the current one.  | 
        	
| TryCopyTo(Memory<T>) | 
						 Attempts to copy the current ReadOnlyMemory2D<T> instance to a destination Memory<T>.  | 
        	
TryCopyTo(Memory2D<T>)
- Source:
 - ReadOnlyMemory2D%7BT%7D.cs
 
- Source:
 - ReadOnlyMemory2D%7BT%7D.cs
 
Attempts to copy the current ReadOnlyMemory2D<T> instance to a destination Memory2D<T>. For this API to succeed, the target Memory2D<T> has to have the same shape as the current one.
public bool TryCopyTo(Microsoft.Toolkit.HighPerformance.Memory2D<T> destination);
	member this.TryCopyTo : Microsoft.Toolkit.HighPerformance.Memory2D<'T> -> bool
	Public Function TryCopyTo (destination As Memory2D(Of T)) As Boolean
	Parameters
- destination
 - Memory2D<T>
 
The target Memory2D<T> of the copy operation.
Returns
Whether or not the operation was successful.
Applies to
TryCopyTo(Memory<T>)
- Source:
 - ReadOnlyMemory2D%7BT%7D.cs
 
- Source:
 - ReadOnlyMemory2D%7BT%7D.cs
 
Attempts to copy the current ReadOnlyMemory2D<T> instance to a destination Memory<T>.
public bool TryCopyTo(Memory<T> destination);
	member this.TryCopyTo : Memory<'T> -> bool
	Public Function TryCopyTo (destination As Memory(Of T)) As Boolean
	Parameters
Returns
Whether or not the operation was successful.