Skip to content

TargetAssemblyAttribute Class

Defines an assembly that a patch method will target.

C#
[AttributeUsage(AttributeTargets.Method)]
public class TargetAssemblyAttribute : Attribute

Inheritance objectAttribute

C#
public TargetAssemblyAttribute(string targetAssembly)

targetAssembly string
The short filename of the assembly. Use to mark all possible assemblies as targets.

Marker used to indicate all possible assemblies to be targeted by a patch method.

C#
public const string AllAssemblies = "_all"

The short filename of the assembly to target.

C#
public string TargetAssembly { get; }