Profiles.Edit.Utilities.DataIO.GetStoreNode C# (CSharp) Method

GetStoreNode() public method

public GetStoreNode ( string value ) : System.Int64
value string
return System.Int64
        public Int64 GetStoreNode(string value)
        {
            StoreNodeRequest snr = new StoreNodeRequest();

            snr.Value = new StoreNodeParam();
            snr.Value.Value = value;
            snr.Value.ParamOrdinal = 0;

            snr.Langauge = new StoreNodeParam();
            snr.Langauge.Value = null;
            snr.Langauge.ParamOrdinal = 1;

            snr.DataType = new StoreNodeParam();
            snr.DataType.Value = null;
            snr.DataType.ParamOrdinal = 2;

            return this.GetNodeId(snr);
        }

Usage Example

        public EditObjectTypeProperty(XmlDocument pagedata, List<ModuleParams> moduleparams, XmlNamespaceManager pagenamespaces)
            : base(pagedata, moduleparams, pagenamespaces)
        {
            Edit.Utilities.DataIO data;
            SessionManagement sm = new SessionManagement();

            Profiles.Profile.Utilities.DataIO propdata = new Profiles.Profile.Utilities.DataIO();
            data = new Profiles.Edit.Utilities.DataIO();

            if (Request.QueryString["subject"] != null)
                this.SubjectID = Convert.ToInt64(Request.QueryString["subject"]);
            else if (base.GetRawQueryStringItem("subject") != null)
                this.SubjectID = Convert.ToInt64(base.GetRawQueryStringItem("subject"));
            else
                Response.Redirect("~/search");

            this.PredicateURI = Request.QueryString["predicateuri"].Replace("!", "#");

            GetSubjectProfile();

            this.PropertyListXML = propdata.GetPropertyList(this.BaseData, base.PresentationXML, PredicateURI, false, true, false);
            this.PropertyLabel = PropertyListXML.SelectSingleNode("PropertyList/PropertyGroup/Property/@Label").Value;
            litBackLink.Text = "<a href='" + Root.Domain + "/edit/" + this.SubjectID.ToString() + "'>Edit Menu</a> &gt; <b>" + this.PropertyLabel + "</b>";

            securityOptions.Subject = this.SubjectID;
            securityOptions.PredicateURI = PredicateURI;
            this.PredicateID = data.GetStoreNode(this.PredicateURI);
            securityOptions.PrivacyCode = Convert.ToInt32(this.PropertyListXML.SelectSingleNode("PropertyList/PropertyGroup/Property/@ViewSecurityGroup").Value);
            securityOptions.SecurityGroups = new XmlDataDocument();
            securityOptions.SecurityGroups.LoadXml(base.PresentationXML.DocumentElement.LastChild.OuterXml);
        }
All Usage Examples Of Profiles.Edit.Utilities.DataIO::GetStoreNode