ToBase64Transform.OutputBlockSize Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the output block size.

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

public int OutputBlockSize { get; }

Property Value

Type: System.Int32

The size of the output data blocks in bytes.

The output block size for this transformation is 4 bytes.

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. This code example is part of a larger example provided for the ToBase64Transform class.

byte[] outputBytes = new byte[base64Transform.OutputBlockSize];

.NET Framework
Available since 1.1
Return to top