RemovePropertyValue() abstract public method

Remove a property value
abstract public RemovePropertyValue ( Int32 elementId ) : IComparable
elementId System.Int32 Id of an edge/vertex
return IComparable
Esempio n. 1
0
        /// <summary>
        /// Un-assigns a key/value property from the vertex.
        /// The object value of the removed property is returned.
        /// </summary>
        /// <param name="key">the key of the property to remove from the vertex</param>
        /// <returns>the object value associated with that key prior to removal</returns>
        public override object RemoveProperty(string key)
        {
            PropertyType pt = m_vertexType.FindProperty(key);

            if (pt == null)
            {
                return(null);
            }
            return(pt.RemovePropertyValue(m_id));
        }
Esempio n. 2
0
        /// <summary>
        /// Un-assigns a key/value property from the edge.
        /// The object value of the removed property is returned.
        /// </summary>
        /// <param name="key">the key of the property to remove from the edge</param>
        /// <returns>the object value associated with that key prior to removal</returns>
        public override object RemoveProperty(string key)
        {
            PropertyType pt = edgeType.FindProperty(key);

            return(pt.RemovePropertyValue(id));
        }