示例#1
0
 public virtual void SetObjectId(string id)
 {
     if (!(base.FindChildByName("__Id") is CsiDataField impl))
     {
         impl = new CsiDataField(this.GetOwnerDocument(), "__Id", this);
     }
     impl.SetValue(id);
 }
示例#2
0
        public ICsiDataField AppendItem(string val)
        {
            ICsiDataField impl = new CsiDataField(this.GetOwnerDocument(), "__listItem", this);

            impl.SetAttribute("__listItemAction", "add");
            impl.SetValue(val);
            return(impl);
        }
示例#3
0
        private void CreateConnectWithoutPassword(string userName, string sessionId, ICsiXmlElement parent)
        {
            ICsiDocument    document = parent.GetOwnerDocument();
            ICsiXmlElement  element  = new CsiXmlElement(document, "__useSession", parent);
            ICsiNamedObject obj2     = new CsiNamedObject(document, "user", element);

            obj2.SetRef(userName);
            ICsiDataField field = new CsiDataField(document, "sessionId", element);

            field.SetAttribute("__encrypted", "no");
            field.SetValue(sessionId);
        }