private static CheckInvalidKey ( Microsoft.Win32.SafeHandles.SafeDsaHandle key ) : void | ||
key | Microsoft.Win32.SafeHandles.SafeDsaHandle | |
return | void |
private static void CheckInvalidKey(SafeDsaHandle key)
{
if (key == null || key.IsInvalid)
{
throw new CryptographicException(SR.Cryptography_OpenInvalidHandle);
}
}