Table of Contents

Class PatchGroupAttribute

Namespace
Exiled.API.Features.Attributes
Assembly
Exiled.API.dll

This attribute is used within Harmony patches and the relative annotations to define a target element.
A target element can be a Type, class or MethodInfo.


PatchGroupAttribute allows to define elements made for patching.

A target-patching approach is useful to patch specific elements without having to directly patch everything without considering excluded elements.

Target-patching also allows to emit patches without having to manually define and/or supply parameters and elements made for patching

[AttributeUsage(AttributeTargets.Class)]
public class PatchGroupAttribute : Attribute, _Attribute
Inheritance
PatchGroupAttribute
Implements
Inherited Members
Extension Methods

Constructors

PatchGroupAttribute(string)

Initializes a new instance of the PatchGroupAttribute class.

public PatchGroupAttribute(string groupId)

Parameters

groupId string

The group of target-patch.

Properties

GroupId

Gets the group id.

public string GroupId { get; }

Property Value

string