private static SchemaObjectBase Convert <T1>(PCClient.ClientSCBase obj) where T1 : SchemaObjectBase, new() { T1 t = new T1(); t.ID = obj.ID; t.VersionStartTime = obj.VersionStartTime; t.VersionEndTime = obj.VersionEndTime; t.Status = (SchemaObjectStatus)obj.Status; foreach (var key in obj.Properties.GetAllKeys()) { t.Properties[key].StringValue = obj.Properties[key].StringValue; } return(t); }
public ClientSchemaMember RemoveMemberFromRole(ClientSCBase clientObject, ClientSCRole clientRole) { return((ClientSchemaMember)this.Invoke("RemoveMemberFromRole", new object[] { clientObject, clientRole })[0]); }
public ClientSchemaMember AddMemberToRole(ClientSCBase clientObject, ClientSCRole clientRole) { return((ClientSchemaMember)this.Invoke("AddMemberToRole", new object[] { clientObject, clientRole })[0]); }
public ClientSchemaRelation MoveObjectToOrganization(ClientSCOrganization clientSource, ClientSCBase clientScObject, ClientSCOrganization clientTarget) { return((ClientSchemaRelation)this.Invoke("MoveObjectToOrganization", new object[] { clientSource, clientScObject, clientTarget })[0]); }
public ClientSchemaObjectBase ChangeOwner(ClientSCBase clientObject, ClientSCOrganization clientParent) { return((ClientSchemaObjectBase)this.Invoke("ChangeOwner", new object[] { clientObject, clientParent })[0]); }