Redigera

Dela via


Hash.CreateSHA256(Byte[]) Method

Definition

Creates a Hash object that contains a SHA256 hash value.

public:
 static System::Security::Policy::Hash ^ CreateSHA256(cli::array <System::Byte> ^ sha256);
public static System.Security.Policy.Hash CreateSHA256 (byte[] sha256);
static member CreateSHA256 : byte[] -> System.Security.Policy.Hash
Public Shared Function CreateSHA256 (sha256 As Byte()) As Hash

Parameters

sha256
Byte[]

A byte array that contains a SHA256 hash value.

Returns

A hash object that contains the hash value provided by the sha256 parameter.

Exceptions

The sha256 parameter is null.

Remarks

The returned Hash object contains only the SHA256 property.

Applies to