types/SPClientFieldParentPipeBind.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
/*
 * SPClientFieldParentPipeBind.cs
 *
 * Copyright (c) 2017 karamem0
 *
 * This software is released under the MIT License.
 * https://github.com/karamem0/SPClient/blob/master/LICENSE
 */

namespace SPClient {

    /// <summary>
    /// Represents a parameter that stores a client object that is the parent of columns.
    /// </summary>
    public class SPClientFieldParentPipeBind {
        
        /// <summary>
        /// Gets the client object.
        /// </summary>
        public Microsoft.SharePoint.Client.ClientObject ClientObject { get; private set; }

        /// <summary>
        /// Initializes the new instance of <see cref="SPClient.SPClientFieldParentPipeBind"/> class.
        /// </summary>
        /// <param name="web">the site which contains columns.</param>
        public SPClientFieldParentPipeBind(Microsoft.SharePoint.Client.Web web) {
            this.ClientObject = web;
        }

        /// <summary>
        /// Initializes the new instance of <see cref="SPClient.SPClientFieldParentPipeBind"/> class.
        /// </summary>
        /// <param name="list">the list which contains columns.</param>
        public SPClientFieldParentPipeBind(Microsoft.SharePoint.Client.List list) {
            this.ClientObject = list;
        }

        /// <summary>
        /// Initializes the new instance of <see cref="SPClient.SPClientFieldParentPipeBind"/> class.
        /// </summary>
        /// <param name="contentType">the content type which contains columns.</param>
        public SPClientFieldParentPipeBind(Microsoft.SharePoint.Client.ContentType contentType) {
            this.ClientObject = contentType;
        }

    }

}