CryptoStream.SetLength(Int64) 方法

定义

设置当前流的长度。Sets the length of the current stream.

public:
 override void SetLength(long value);
public override void SetLength (long value);
override this.SetLength : int64 -> unit
Public Overrides Sub SetLength (value As Long)

参数

value
Int64

当前流的所需长度,以字节为单位。The desired length of the current stream in bytes.

异常

此属性的存在只是为了支持从 Stream 继承;无法使用此属性。This property exists only to support inheritance from Stream, and cannot be used.

注解

此属性的存在只是为了支持从 Stream 继承;无法使用此属性。This property exists only to support inheritance from Stream, and cannot be used.

适用于

另请参阅