private async void load(string url) { HMS.SP.SecurableObject spSecurableObject = await SPGet.getSecurableObject(spglb.myClient, url); this.add_SecurableObject(1, spSecurableObject); this.hide_running(); }
public int add_SecurableObject(int pos, int level, HMS.SP.SecurableObject spSecurableObject) { if (spSecurableObject.__HMSError_ != null && (spSecurableObject.__HMSError_.errno != 0 || spSecurableObject.__HMSError_.info != "")) { pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spSecurableObject.__HMSError_)); } pos = this.add__deferred(pos, level, spSecurableObject.__deferred_); pos = this.add__metadata(pos, level, spSecurableObject.__metadata_); pos = this.add__rest(pos, level, spSecurableObject.__rest); pos = this.add_deferredAt(pos, level, "FirstUniqueAncestorSecurableObject", "...", knownPages.pageSecurableObject, spSecurableObject.FirstUniqueAncestorSecurableObject_.__deferred_); //SecurableObject; pos = this.add_lineAt(pos, level, "HasUniqueRoleAssignments", HMS.SP.SPUtil.toString(spSecurableObject.HasUniqueRoleAssignments_)); //Boolean; pos = this.add_deferredAt(pos, level, "RoleAssignments", "...", myType.GetType("SP.RoleAssignment"), spSecurableObject.RoleAssignments_.__deferred_); //RoleAssignment; return(pos); }
public int add_SecurableObject_deferred(int pos, int level, HMS.SP.SecurableObject spSecurableObject) { { string useUrl = spSecurableObject.__deferred_.uri; if (!String.IsNullOrEmpty(useUrl)) { pos = this.add_lineAt(pos, level, false, "SecurableObject", "", knownPages.pageSecurableObject, useUrl); } else { pos = this.add_lineAt(pos, level, true, "SecurableObject", "", knownPages.NONE, ""); pos = this.add_SecurableObject(pos, level + 1, spSecurableObject); } } return(pos); }
public int add_SecurableObject(int level, HMS.SP.SecurableObject spSecurableObject) { return(add_SecurableObject(-1, level, spSecurableObject)); }