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.String
url
A SharePoint site URL |
System.Int32
retryCount
Maximum amount of retries before giving up |
System.Int32
delay
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.Int32
retryCount
Maximum amount of retries before giving up |
System.Int32
delay
Initial delay in milliseconds |
Properties
Delay
Declaration
public int Delay { get; set; }
Property Value
System.Int32
|
PropertyBag
Generic property bag for the PnPClientContext
Declaration
public ConcurrentDictionary<string, object> PropertyBag { get; set; }
Property Value
ConcurrentDictionary<System.String, System.Object>
|
RetryCount
Declaration
public int RetryCount { get; set; }
Property Value
System.Int32
|
Methods
ConvertFrom(ClientContext, Int32, Int32)
Converts ClientContext into PnPClientContext
Declaration
public static PnPClientContext ConvertFrom(ClientContext clientContext, int retryCount = 10, int delay = 500)
Parameters
ClientContext
clientContext
A SharePoint ClientContext for resource operations |
System.Int32
retryCount
Maximum amount of retries before giving up |
System.Int32
delay
Initial delay in milliseconds |
Returns
PnPClientContext
|