PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Assembly­Ref­Declaration Class / Assembly­Ref­Declaration Methods / Assembly­Ref­Declaration.​Set­Public­Key­Token Method

AssemblyRefDeclaration.SetPublicKeyToken Method

Sets the public key token.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public void SetPublicKeyToken(
	byte[] value
)

Parameters

value
Type: System.Byte[]
The public key token, or null to remote the public key token.
Remarks
The PublicKey flag should be cleared on the Attributes property.
See Also