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.

Exception Condition
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
Available since 1.1
Return to top
Show: