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 Method

AssemblyRefDeclaration.SetPublicKey Method

Sets the public key.

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 SetPublicKey(
	byte[] value
)

Parameters

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