Class PnPClientContext
Class that deals with PnPClientContext methods
Inheritance
System.Object
PnPClientContext
Namespace: PnP.Framework
Assembly: PnP.Framework.dll
Syntax
public class PnPClientContext : ClientContext
Constructors
PnPClientContext(String, Int32, Int32)
Creates a ClientContext allowing you to override the default retry and delay values of ExecuteQueryRetry
Declaration
public PnPClientContext(string url, int retryCount = 10, int delay = 500)
Parameters
System. A SharePoint site URL |
System. Maximum amount of retries before giving up |
System. Initial delay in milliseconds |
PnPClientContext(Uri, Int32, Int32)
Creates a ClientContext allowing you to override the default retry and delay values of ExecuteQueryRetry
Declaration
public PnPClientContext(Uri uri, int retryCount = 10, int delay = 500)
Parameters
Uri
uri
A SharePoint site/web full URL |
System. Maximum amount of retries before giving up |
System. Initial delay in milliseconds |
Properties
Delay
Declaration
public int Delay { get; set; }
Property Value
System.
|
PropertyBag
Generic property bag for the PnPClientContext
Declaration
public ConcurrentDictionary<string, object> PropertyBag { get; set; }
Property Value
Concurrent
|
RetryCount
Declaration
public int RetryCount { get; set; }
Property Value
System.
|
Methods
ConvertFrom(ClientContext, Int32, Int32)
Converts ClientContext into PnPClientContext
Declaration
public static PnPClientContext ConvertFrom(ClientContext clientContext, int retryCount = 10, int delay = 500)
Parameters
Client A SharePoint ClientContext for resource operations |
System. Maximum amount of retries before giving up |
System. Initial delay in milliseconds |