Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.91 KB

strongnamekeyinstall-function.md

File metadata and controls

71 lines (50 loc) · 1.91 KB
description title ms.date api_name api_location api_type f1_keywords helpviewer_keywords ms.assetid topic_type
Learn more about: StrongNameKeyInstall Function
StrongNameKeyInstall Function
03/30/2017
StrongNameKeyInstall
mscoree.dll
DLLExport
StrongNameKeyInstall
StrongNameKeyInstall function [.NET Framework strong naming]
e32fd546-7757-4681-be3d-658e93281e50
apiref

StrongNameKeyInstall Function

Imports a public/private key pair into a container.

This function has been deprecated. Use the ICLRStrongName::StrongNameKeyInstall method instead.

Syntax

BOOLEAN StrongNameKeyInstall (
    [in]  LPCWSTR   wszKeyContainer,
    [in]  BYTE      *pbKeyBlob,
    [in]  ULONG     cbKeyBlob
);

Parameters

wszKeyContainer
[in] The name of the key container. wszKeyContainer must be a non-empty string.

pbKeyBlob
[in] The binary key pair.

cbKeyBlob
[in] The size, in bytes, of pbKeyBlob.

Return Value

true on successful completion; otherwise, false.

Remarks

Use the StrongNameKeyDelete function to delete the key container.

If the StrongNameKeyInstall function does not complete successfully, call the StrongNameErrorInfo function to retrieve the last generated error.

Requirements

Platforms: See System Requirements.

Header: StrongName.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: [!INCLUDEnet_current_v10plus]

See also