次の方法で共有


CryptoStream.Write メソッド

バイト シーケンスを現在の CryptoStream に書き込み、書き込んだバイト数の分だけストリーム内の現在位置を進めます。

Overrides Public Sub Write( _
   ByVal buffer() As Byte, _   ByVal offset As Integer, _   ByVal count As Integer _)
[C#]
public override void Write(byte[] buffer,intoffset,intcount);
[C++]
public: void Write(unsigned charbuffer __gc[],intoffset,intcount);
[JScript]
public override function Write(
   buffer : Byte[],offset : int,count : int);

パラメータ

  • buffer
    バイト配列。このメソッドは、バッファから現在のストリームに、count で指定されたバイト数だけコピーします。
  • offset
    現在のストリームへのバイトのコピーを開始する位置を示す、バッファ内のバイト オフセット。
  • count
    現在のストリームに書き込むバイト数。

例外

例外の種類 条件
NotSupportedException 現在のストリームが書き込み可能ではありません。
ArgumentOutOfRangeException offset パラメータが 0 未満です。

または

count パラメータが 0 未満です。

ArgumentException count パラメータと offset パラメータの合計が、バッファの長さを超えています。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

CryptoStream クラス | CryptoStream メンバ | System.Security.Cryptography 名前空間 | 暗号サービス