ICorDebugMergedAssemblyRecord::GetPublicKeyToken 方法ICorDebugMergedAssemblyRecord::GetPublicKeyToken Method

获取程序集的公钥标记。Gets the assembly's public key token.

语法Syntax

HRESULT GetPublicKeyToken(  
   [in] ULONG32 cbPublicKeyToken,
   [out] ULONG32 *pcbPublicKeyToken,
   [out, size_is(cbPublicKeyToken), length_is(*pcbPublicKeyToken)] BYTE pbPublicKeyToken[]  
);  

参数Parameters

cbPublicKeyToken
[in] pbPublicKeyToken 数组中的最大字节数。[in] The maximum number of bytes in the pbPublicKeyToken array.

pcbPublicKeyToken
[out] 指向写入 pbPublicKeyToken 数组的实际字节数的指针。[out] A pointer to the actual number of bytes written to the pbPublicKeyToken array.

pbPublicKeyToken
[out] 指向包含程序集公钥标记的字节数组的指针。[out] A pointer to a byte array that contains the assembly's public key token.

备注Remarks

程序集的公钥标记是指其公钥中 SHA1 哈希的最后 8 个字节。An assembly's public key token is the last eight bytes of a SHA1 hash of its public key.

备注

此方法仅适用于 .NET Native。This method is available with .NET Native only.

要求Requirements

平台: 请参阅系统要求Platforms: See System Requirements.

标头:CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

库: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 4.6 之后可用,仅限 .NET NativeAvailable since 4.6, .NET Native only.NET Framework Versions: 自 4.6 之后可用,仅限 .NET NativeAvailable since 4.6, .NET Native only

请参阅See also