private async void load(string url) { HMS.SP.AttachmentCreationInformation spAttachmentCreationInformation = await SPGet.getAttachmentCreationInformation(spglb.myClient, url); this.add_AttachmentCreationInformation(1, spAttachmentCreationInformation); this.hide_running(); }
public int add_AttachmentCreationInformation(int pos, int level, HMS.SP.AttachmentCreationInformation spAttachmentCreationInformation) { if (spAttachmentCreationInformation.__HMSError_ != null && (spAttachmentCreationInformation.__HMSError_.errno != 0 || spAttachmentCreationInformation.__HMSError_.info != "")) { pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spAttachmentCreationInformation.__HMSError_)); } pos = this.add__deferred(pos, level, spAttachmentCreationInformation.__deferred_); pos = this.add__metadata(pos, level, spAttachmentCreationInformation.__metadata_); pos = this.add__rest(pos, level, spAttachmentCreationInformation.__rest); pos = this.add_lineAt(pos, level, "ContentStream", HMS.SP.SPUtil.toString(spAttachmentCreationInformation.ContentStream_)); //Undefined; pos = this.add_lineAt(pos, level, "FileName", HMS.SP.SPUtil.toString(spAttachmentCreationInformation.FileName_)); //Object; pos = this.add_lineAt(pos, level, "TypeId", HMS.SP.SPUtil.toString(spAttachmentCreationInformation.TypeId_)); //String; return(pos); }
public int add_AttachmentCreationInformation_deferred(int pos, int level, HMS.SP.AttachmentCreationInformation spAttachmentCreationInformation) { { string useUrl = spAttachmentCreationInformation.__deferred_.uri; if (!String.IsNullOrEmpty(useUrl)) { pos = this.add_lineAt(pos, level, false, "AttachmentCreationInformation", "", knownPages.pageAttachmentCreationInformation, useUrl); } else { pos = this.add_lineAt(pos, level, true, "AttachmentCreationInformation", "", knownPages.NONE, ""); pos = this.add_AttachmentCreationInformation(pos, level + 1, spAttachmentCreationInformation); } } return(pos); }
public int add_AttachmentCreationInformation(int level, HMS.SP.AttachmentCreationInformation spAttachmentCreationInformation) { return(add_AttachmentCreationInformation(-1, level, spAttachmentCreationInformation)); }