ToBase64Transform.OutputBlockSize 属性

定义

获取输出块大小。Gets the output block size.

public:
 property int OutputBlockSize { int get(); };
public int OutputBlockSize { get; }
member this.OutputBlockSize : int
Public ReadOnly Property OutputBlockSize As Integer

属性值

输出数据块的大小(以字节为单位)。The size of the output data blocks in bytes.

实现

示例

下面的代码示例演示如何调用OutputBlockSize属性来创建一个新的字节数组, 该数组的大小为输出块大小。The following code example demonstrates how to call the OutputBlockSize property to create a new byte array with the size of the output block size. 此代码示例是为ToBase64Transform类提供的更大示例的一部分。This code example is part of a larger example provided for the ToBase64Transform class.

array<Byte>^outputBytes = gcnew array<Byte>(
   base64Transform->OutputBlockSize);
byte[] outputBytes = new byte[base64Transform.OutputBlockSize];
Dim outputBytes(base64Transform.OutputBlockSize) As Byte

注解

此转换的输出块大小为4个字节。The output block size for this transformation is 4 bytes.

适用于

另请参阅