internal SafeProvOrNCryptKeyHandleUwp(IntPtr handle, SafeHandle parentHandle)
: this(handle, true, true)
{
Debug.Assert(parentHandle != null && !parentHandle.IsClosed && !parentHandle.IsInvalid);
// If the provided handle value wasn't valid we won't call dispose, so we shouldn't be doing this.
Debug.Assert(!IsInvalid);
bool addedRef = false;
parentHandle.DangerousAddRef(ref addedRef);
_parentHandle = parentHandle;
}