Exemple #1
0
        private async void load(string url)
        {
            HMS.SP.ContextWebInformation spContextWebInformation = await SPGet.getContextWebInformation(spglb.myClient, url);

            this.add_ContextWebInformation(1, spContextWebInformation);
            this.hide_running();
        }
 public int add_ContextWebInformation_deferred(int pos, int level, HMS.SP.ContextWebInformation spContextWebInformation)
 {
     {
         string useUrl = spContextWebInformation.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "ContextWebInformation", "", knownPages.pageContextWebInformation, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "ContextWebInformation", "", knownPages.NONE, "");
             pos = this.add_ContextWebInformation(pos, level + 1, spContextWebInformation);
         }
     }
     return(pos);
 }
 public int  add_ContextWebInformation(int pos, int level, HMS.SP.ContextWebInformation spContextWebInformation)
 {
     if (spContextWebInformation.__HMSError_ != null && (spContextWebInformation.__HMSError_.errno != 0 || spContextWebInformation.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spContextWebInformation.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spContextWebInformation.__deferred_);
     pos = this.add__metadata(pos, level, spContextWebInformation.__metadata_);
     pos = this.add__rest(pos, level, spContextWebInformation.__rest);
     pos = this.add_lineAt(pos, level, "FormDigestTimeoutSeconds", HMS.SP.SPUtil.toString(spContextWebInformation.FormDigestTimeoutSeconds_)); //Int32;
     pos = this.add_lineAt(pos, level, "FormDigestValue", HMS.SP.SPUtil.toString(spContextWebInformation.FormDigestValue_));                   //String;
     pos = this.add_lineAt(pos, level, "LibraryVersion", HMS.SP.SPUtil.toString(spContextWebInformation.LibraryVersion_));                     //String;
     pos = this.add_lineAt(pos, level, "SiteFullUrl", HMS.SP.SPUtil.toString(spContextWebInformation.SiteFullUrl_));                           //String;
     pos = this.add_lineAt(pos, level, "SupportedSchemaVersions", HMS.SP.SPUtil.toString(spContextWebInformation.SupportedSchemaVersions_));   //String;
     pos = this.add_lineAt(pos, level, "WebFullUrl", HMS.SP.SPUtil.toString(spContextWebInformation.WebFullUrl_));                             //String;
     return(pos);
 }
 public int add_ContextWebInformation(int level, HMS.SP.ContextWebInformation spContextWebInformation)
 {
     return(add_ContextWebInformation(-1, level, spContextWebInformation));
 }