Export (0) Print
Expand All

SHA256.Create Method (String)

Creates an instance of a specified implementation of SHA256.

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

public static SHA256 Create(
	string hashName
)

Parameters

hashName
Type: System.String

The name of the specific implementation of SHA256 to be used.

Return Value

Type: System.Security.Cryptography.SHA256
A new instance of SHA256 using the specified implementation.

ExceptionCondition
TargetInvocationException

The algorithm described by the hashName parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft