This documentation is archived and is not being maintained.

ICLRStrongName::StrongNameKeyInstall Method

Imports a public/private key pair into a container.

HRESULT StrongNameKeyInstall (
    [in]  LPCWSTR   wszKeyContainer,
    [in]  BYTE      *pbKeyBlob,
    [in]  ULONG     cbKeyBlob


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


[in] The binary key pair.


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

S_OK if the method completed successfully; otherwise, an HRESULT value that indicates failure (see Common HRESULT Values for a list).

Use the ICLRStrongName::StrongNameKeyDelete method to delete the key container.

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4