Beispiel #1
0
        static void Main(string[] args)
        {
            // Instantiate the timer job class
            OverrideJob overrideJob = new OverrideJob();

            // The provided credentials need access to the site collections you want to use
            overrideJob.UseOffice365Authentication(User, Password);

            // In case of SharePoint on-premises use
            //overrideJob.UseNetworkCredentialsAuthentication(User, Password, Domain);

            // Add one or more sites to operate on
            overrideJob.AddSite("https://bertonline.sharepoint.com/sites/dev");

            // Print timer job information and then call Run() on the job
            PrintJobSettingsAndRunJob(overrideJob);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            // Instantiate the timer job class
            OverrideJob overrideJob = new OverrideJob();
            
            // The provided credentials need access to the site collections you want to use
            overrideJob.UseOffice365Authentication(User, Password);

            // In case of SharePoint on-premises use
            //overrideJob.UseNetworkCredentialsAuthentication(User, Password, Domain);

            // Add one or more sites to operate on            
            overrideJob.AddSite("https://bertonline.sharepoint.com/sites/dev");

            // Print timer job information and then call Run() on the job
            PrintJobSettingsAndRunJob(overrideJob);
        }