<PackageReference Include="Relativity.Server.API.SDK" Version="5000.0.3" />

PageMode

public enum PageMode
Indicates the step in the page workflow in which a call to the event handler originates.
Edit = 2

Indicates the edit page mode.

View = 1

Indicates the view page mode.