Sdílet prostřednictvím


ICLRStrongName::StrongNameKeyInstall Method

Updated: July 2010

Imports a public/private key pair into a container.

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 if the method completed successfully; otherwise, false.

Remarks

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

Requirements

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4

See Also

Reference

ICLRStrongName::StrongNameKeyDelete Method

ICLRStrongName Interface

Change History

Date

History

Reason

July 2010

Added topic.

Information enhancement.