ProviderHostedCustomUIActionsWeb.Models.ContactsListManager.ContactsListManager C# (CSharp) Method

ContactsListManager() public method

public ContactsListManager ( System.Guid ListId ) : System
ListId System.Guid
return System
        public ContactsListManager(Guid ListId)
        {
            var spContext = SharePointContextProvider.Current.GetSharePointContext(HttpContext.Current);
              clientContext = spContext.CreateUserClientContextForSPHost();
              hostWeb = clientContext.Web;
              clientContext.Load(hostWeb);
              contactsList = hostWeb.Lists.GetById(ListId);
              clientContext.Load(contactsList);
              clientContext.ExecuteQuery();
        }

Same methods

ContactsListManager::ContactsListManager ( ) : System