示例#1
0
        private async void load(string url)
        {
            HMS.SP.FileCreationInformation spFileCreationInformation = await SPGet.getFileCreationInformation(spglb.myClient, url);

            this.add_FileCreationInformation(1, spFileCreationInformation);
            this.hide_running();
        }
 public int  add_FileCreationInformation(int pos, int level, HMS.SP.FileCreationInformation spFileCreationInformation)
 {
     if (spFileCreationInformation.__HMSError_ != null && (spFileCreationInformation.__HMSError_.errno != 0 || spFileCreationInformation.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spFileCreationInformation.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spFileCreationInformation.__deferred_);
     pos = this.add__metadata(pos, level, spFileCreationInformation.__metadata_);
     pos = this.add__rest(pos, level, spFileCreationInformation.__rest);
     pos = this.add_lineAt(pos, level, "Content", HMS.SP.SPUtil.toString(spFileCreationInformation.Content_));     //Binary;
     pos = this.add_lineAt(pos, level, "Overwrite", HMS.SP.SPUtil.toString(spFileCreationInformation.Overwrite_)); //Boolean;
     pos = this.add_lineAt(pos, level, "Url", HMS.SP.SPUtil.toString(spFileCreationInformation.Url_));             //String;
     return(pos);
 }
 public int add_FileCreationInformation_deferred(int pos, int level, HMS.SP.FileCreationInformation spFileCreationInformation)
 {
     {
         string useUrl = spFileCreationInformation.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "FileCreationInformation", "", knownPages.pageFileCreationInformation, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "FileCreationInformation", "", knownPages.NONE, "");
             pos = this.add_FileCreationInformation(pos, level + 1, spFileCreationInformation);
         }
     }
     return(pos);
 }
 public int add_FileCreationInformation(int level, HMS.SP.FileCreationInformation spFileCreationInformation)
 {
     return(add_FileCreationInformation(-1, level, spFileCreationInformation));
 }