Exemple #1
0
        /// <summary>
        /// Adds a script to an application.
        /// </summary>
        /// <param name="appId">appId identifies the application to use.</param>
        /// <param name="script">script is a ScriptType object specifying the script to be updated.</param>
        /// <returns>A ProvisioningWarningListType object, containing minor
        /// warnings about non-fatal provisioning problems.</returns>
        public ProvisioningWarningType[] AddScript(string appId, ScriptType script)
        {
            var addScriptInput = new AddScriptType()
            {
                applicationID = appId, script = script
            };

            return(provisionSvc.addScript(addScriptInput));
        }
 /// <summary>
 /// Adds a script to an application.
 /// </summary>
 /// <param name="appId">appId identifies the application to use.</param>
 /// <param name="script">script is a ScriptType object specifying the script to be updated.</param>
 /// <returns>A ProvisioningWarningListType object, containing minor 
 /// warnings about non-fatal provisioning problems.</returns>
 public ProvisioningWarningType[] AddScript(string appId, ScriptType script)
 {
     var addScriptInput = new AddScriptType() { applicationID = appId, script = script };
     return provisionSvc.addScript(addScriptInput);
 }
 /// <remarks/>
 public void addScriptAsync(AddScriptType addScriptInput, object userState)
 {
     if ((this.addScriptOperationCompleted == null))
     {
         this.addScriptOperationCompleted = new System.Threading.SendOrPostCallback(this.OnaddScriptOperationCompleted);
     }
     this.InvokeAsync("addScript", new object[] {
                 addScriptInput}, this.addScriptOperationCompleted, userState);
 }
 /// <remarks/>
 public System.IAsyncResult BeginaddScript(AddScriptType addScriptInput, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("addScript", new object[] {
                 addScriptInput}, callback, asyncState);
 }
 /// <remarks/>
 public void addScriptAsync(AddScriptType addScriptInput)
 {
     this.addScriptAsync(addScriptInput, null);
 }