/
AddUserCustomActionOptions.cs
97 lines (80 loc) · 3.66 KB
/
AddUserCustomActionOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
using System;
namespace PnP.Core.Model.SharePoint
{
/// <summary>
/// Options to specify when adding User Custom Action
/// </summary>
public class AddUserCustomActionOptions
{
/// <summary>
/// Gets or sets the unique identifier of the associated client side component.
/// </summary>
public Guid? ClientSideComponentId { get; set; }
/// <summary>
/// Gets or sets the JSON formatted properties of the associated client side component.
/// </summary>
public string ClientSideComponentProperties { get; set; }
/// <summary>
/// Gets or sets a value that specifies an implementation specific XML fragment that determines user interface properties of the custom action.
/// </summary>
public string CommandUIExtension { get; set; }
/// <summary>
/// Gets or sets the description of the custom action.
/// </summary>
public string Description { get; set; }
/// <summary>
/// Gets or sets a value that specifies an implementation-specific value that determines the position of the custom action in the page.
/// </summary>
public string Group { get; set; }
/// <summary>
/// This property is only used when an application customizer is created and preallocated placeholders are specified.
/// It is optional. If non-empty, the string must contain a JSON object with one or two properties for the height
/// amount needed to be preallocated.
/// </summary>
public string HostProperties { get; set; }
/// <summary>
/// Gets or sets the URL of the image associated with the custom action.
/// </summary>
public string ImageUrl { get; set; }
/// <summary>
/// Gets or sets the location of the custom action.
/// </summary>
public string Location { get; set; }
/// <summary>
/// Gets or sets the name of the custom action.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Gets or sets the value that specifies the identifier of the object associated with the custom action.
/// </summary>
public string RegistrationId { get; set; }
/// <summary>
/// Gets or sets the value that specifies the type of object associated with the custom action.
/// </summary>
public UserCustomActionRegistrationType? RegistrationType { get; set; }
/// <summary>
/// Gets or sets the value that specifies the ECMAScript to be executed when the custom action is performed.
/// </summary>
public string ScriptBlock { get; set; }
/// <summary>
/// Gets or sets a value that specifies the URI of a file which contains the ECMAScript to execute on the page.
/// </summary>
public string ScriptSrc { get; set; }
/// <summary>
/// Gets or sets the value that specifies an implementation-specific value that determines the order of the custom action that appears on the page.
/// </summary>
public int? Sequence { get; set; }
/// <summary>
/// Gets or sets the display title of the custom action.
/// </summary>
public string Title { get; set; }
/// <summary>
/// Gets or sets the URL, URI, or ECMAScript (JScript, JavaScript) function associated with the action.
/// </summary>
public string Url { get; set; }
/// <summary>
/// Gets or sets the Rights for this action.
/// </summary>
public IBasePermissions Rights { get; set; } = new BasePermissions();
}
}