Vector<T>.TryCopyTo Metoda

Definice

Přetížení

TryCopyTo(Span<Byte>)

Attempts to copy the vector to the given byte span.Attempts to copy the vector to the given byte span.

TryCopyTo(Span<T>)

Attempts to copy the vector to the given Span<T>.Attempts to copy the vector to the given Span<T>.

TryCopyTo(Span<Byte>)

Attempts to copy the vector to the given byte span.Attempts to copy the vector to the given byte span.

public:
 bool TryCopyTo(Span<System::Byte> destination);
public bool TryCopyTo (Span<byte> destination);
member this.TryCopyTo : Span<byte> -> bool
Public Function TryCopyTo (destination As Span(Of Byte)) As Boolean

Parametry

destination
Span<Byte>

The destination span to which the values are copied.The destination span to which the values are copied. The destination span must be at least size Count.The destination span must be at least size Count.

Návraty

true if the source vector was successfully copied to destination.true if the source vector was successfully copied to destination. false if destination is not large enough to hold the source vector.false if destination is not large enough to hold the source vector.

TryCopyTo(Span<T>)

Attempts to copy the vector to the given Span<T>.Attempts to copy the vector to the given Span<T>.

public:
 bool TryCopyTo(Span<T> destination);
public bool TryCopyTo (Span<T> destination);
member this.TryCopyTo : Span<'T (requires 'T : struct)> -> bool
Public Function TryCopyTo (destination As Span(Of T)) As Boolean

Parametry

destination
Span<T>

The destination span to which the values are copied.The destination span to which the values are copied. The destination span must be at least size Count.The destination span must be at least size Count.

Návraty

true if the source vector was successfully copied to destination.true if the source vector was successfully copied to destination. false if destination is not large enough to hold the source vector.false if destination is not large enough to hold the source vector.

Platí pro