BlobBuilder.TryWriteBytes(Stream, Int32) Méthode

Définition

Tente d’écrire une séquence d’octets dans le générateur. Une valeur de retour indique le nombre d’octets correctement écrits.

public:
 int TryWriteBytes(System::IO::Stream ^ source, int byteCount);
public int TryWriteBytes(System.IO.Stream source, int byteCount);
member this.TryWriteBytes : System.IO.Stream * int -> int
Public Function TryWriteBytes (source As Stream, byteCount As Integer) As Integer

Paramètres

source
Stream
byteCount
Int32

Retours

Nombre d’octets écrits avec succès à partir de source.

Exceptions

source a la valeur null.

byteCount est négatif.

Le générateur n’est pas accessible en écriture ; il a été lié à un autre.

S’applique à