Poznámka:
Přístup k této stránce vyžaduje autorizaci. Můžete se zkusit přihlásit nebo změnit adresáře.
Přístup k této stránce vyžaduje autorizaci. Můžete zkusit změnit adresáře.
Updated: July 2010
Creates a strong name token from the specified assembly file.
This function has been deprecated in the .NET Framework version 4. Use the ICLRStrongName::StrongNameTokenFromAssembly method instead.
BOOLEAN StrongNameTokenFromAssembly (
[in] LPCWSTR wszFilePath,
[out] BYTE **ppbStrongNameToken,
[out] ULONG *pcbStrongNameToken
);
Parameters
wszFilePath
[in] The path to the portable executable (PE) file for the assembly.ppbStrongNameToken
[out] The returned strong name token.pcbStrongNameToken
[out] The size, in bytes, of the strong name token.
Return Value
true on successful completion; otherwise, false.
Remarks
A strong name token is the shortened form of a public key. The token is a 64-bit hash that is created from the public key used to sign the assembly. The token is a part of the strong name for the assembly, and can be read from the assembly metadata.
After the token is created, you should call the StrongNameFreeBuffer function to release the allocated memory.
If the StrongNameTokenFromAssembly function does not complete successfully, call the StrongNameErrorInfo function to retrieve the last generated error.
Requirements
Platforms: See .NET Framework System Requirements.
Header: StrongName.h
Library: Included as a resource in mscoree.dll
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0
See Also
Reference
ICLRStrongName::StrongNameTokenFromAssembly Method
ICLRStrongName::StrongNameTokenFromAssemblyEx Method
Change History
Date |
History |
Reason |
|---|---|---|
|
July 2010 |
Added link to recommended alternative. |
Information enhancement. |