Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Gets a token representing a public key. A strong name token is the shortened form of a public key.
This function has been deprecated. Use the ICLRStrongName::StrongNameTokenFromPublicKey method instead.
BOOLEAN StrongNameTokenFromPublicKey (
[in] BYTE *pbPublicKeyBlob,
[in] ULONG cbPublicKeyBlob,
[out] BYTE **ppbStrongNameToken,
[out] ULONG *pcbStrongNameToken
);
pbPublicKeyBlob
[in] A structure of type PublicKeyBlob that contains the public portion of the key pair used to generate the strong name signature.
cbPublicKeyBlob
[in] The size, in bytes, of pbPublicKeyBlob
.
ppbStrongNameToken
[out] The strong name token corresponding to the key passed in pbPublicKeyBlob
. The common language runtime allocates the memory in which to return the token. The caller must free this memory by using the StrongNameFreeBuffer function.
pcbStrongNameToken
[out] The size, in bytes, of the returned strong name token.
true
on successful completion; otherwise, false
.
A strong name token is the shortened form of a public key used to save space when storing key information in metadata. Specifically, strong name tokens are used in assembly references to refer to the dependent assembly.
If the StrongNameTokenFromPublicKey
function does not complete successfully, call the StrongNameErrorInfo function to retrieve the last generated error.
Platforms: See System Requirements.
Header: StrongName.h
Library: Included as a resource in mscoree.dll
.NET Framework Versions: Available since 1.0
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now