ICorDebugMergedAssemblyRecord::GetPublicKey 方法ICorDebugMergedAssemblyRecord::GetPublicKey Method

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

语法Syntax

HRESULT GetPublicKey(  
   [in] ULONG32 cbPublicKey,
   [out] ULONG32 *pcbPublicKey,
   [out, size_is(cbPublicKey), length_is(*pcbPublicKey)] BYTE pbPublicKey[]);  

参数Parameters

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

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

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

备注Remarks

备注

此方法仅适用于 .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