-
Notifications
You must be signed in to change notification settings - Fork 186
/
ConnectSiteToGroupOptions.cs
41 lines (36 loc) · 1.33 KB
/
ConnectSiteToGroupOptions.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
using System;
namespace PnP.Core.Admin.Model.SharePoint
{
/// <summary>
/// Defines the information need to connect a group to an existing site
/// </summary>
public class ConnectSiteToGroupOptions : CommonGroupSiteOptions
{
/// <summary>
/// Creates an ConnectSiteToGroupOptions class
/// </summary>
/// <param name="url">The url for the site to group connect</param>
/// <param name="alias">Alias for the group that will be connected to the site</param>
/// <param name="displayName">Name of the site</param>
public ConnectSiteToGroupOptions(Uri url, string alias, string displayName) : base(alias, displayName)
{
if (url == null)
{
throw new ArgumentNullException(nameof(url));
}
Url = url;
}
/// <summary>
/// The url for the site to group connect
/// </summary>
public Uri Url { get; set; }
/// <summary>
/// If the site already has a modern home page, do we want to keep it?
/// </summary>
public bool KeepOldHomePage { get; set; }
/// <summary>
/// Set the owners of the group connected site. Specify the UPN values in a string array.
/// </summary>
public string[] Owners { get; set; }
}
}