private async void load(string url) { HMS.SP.WebCreationInformation spWebCreationInformation = await SPGet.getWebCreationInformation(spglb.myClient, url); this.add_WebCreationInformation(1, spWebCreationInformation); this.hide_running(); }
public int add_WebCreationInformation(int pos, int level, HMS.SP.WebCreationInformation spWebCreationInformation) { if (spWebCreationInformation.__HMSError_ != null && (spWebCreationInformation.__HMSError_.errno != 0 || spWebCreationInformation.__HMSError_.info != "")) { pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spWebCreationInformation.__HMSError_)); } pos = this.add__deferred(pos, level, spWebCreationInformation.__deferred_); pos = this.add__metadata(pos, level, spWebCreationInformation.__metadata_); pos = this.add__rest(pos, level, spWebCreationInformation.__rest); pos = this.add_lineAt(pos, level, "Description", HMS.SP.SPUtil.toString(spWebCreationInformation.Description_)); //String; pos = this.add_lineAt(pos, level, "Language", HMS.SP.SPUtil.toString(spWebCreationInformation.Language_)); //Int32; pos = this.add_lineAt(pos, level, "Title", HMS.SP.SPUtil.toString(spWebCreationInformation.Title_)); //String; pos = this.add_lineAt(pos, level, "Url", HMS.SP.SPUtil.toString(spWebCreationInformation.Url_)); //String; pos = this.add_lineAt(pos, level, "UseSamePermissionsAsParentSite", HMS.SP.SPUtil.toString(spWebCreationInformation.UseSamePermissionsAsParentSite_)); //Boolean; pos = this.add_lineAt(pos, level, "WebTemplate", HMS.SP.SPUtil.toString(spWebCreationInformation.WebTemplate_)); //String; return(pos); }
public int add_WebCreationInformation_deferred(int pos, int level, HMS.SP.WebCreationInformation spWebCreationInformation) { if (spWebCreationInformation.TitleResource_.uri == null) { pos = this.add_lineAt(pos, level, true, "WebCreationInformation", HMS.SP.SPUtil.toString(spWebCreationInformation.Title_), knownPages.NONE, ""); //String; pos = add_WebCreationInformation(pos, level + 1, spWebCreationInformation); } else { string useUrl = spWebCreationInformation.__deferred_.uri; if (String.IsNullOrEmpty(useUrl)) { useUrl = spWebCreationInformation.TitleResource_.uri.Replace("/TitleResource", ""); } pos = this.add_lineAt(pos, level, false, spWebCreationInformation.Title_, "", knownPages.pageWebCreationInformation, useUrl); } return(pos); }
public int add_WebCreationInformation(int level, HMS.SP.WebCreationInformation spWebCreationInformation) { return(add_WebCreationInformation(-1, level, spWebCreationInformation)); }