ToBase64Transform.OutputBlockSize ToBase64Transform.OutputBlockSize ToBase64Transform.OutputBlockSize ToBase64Transform.OutputBlockSize Property

定義

取得輸出區塊的大小。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.

適用於

另請參閱