次の方法で共有


CryptoStream.SetLength Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Throws a NotSupportedException in all cases.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Overrides Sub SetLength ( _
    value As Long _
)
public override void SetLength(
    long value
)

Parameters

  • value
    Type: System.Int64
    The desired length of the current stream, in bytes.

Exceptions

Exception Condition
NotSupportedException

In all cases.

Remarks

This method exists only to support inheritance from Stream, and cannot be used.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.