SenseNet.ContentRepository.Storage.Schema.SchemaWriter.DeleteNodeType C# (CSharp) Method

DeleteNodeType() public abstract method

When overridden in a derived class, deletes the passed NodeType. Before NodeType deleting removes all PropertyTypes from the passed NodeType but does not reset the property values because all nodes instatiated by passed NodeType had been deleted.
public abstract DeleteNodeType ( NodeType nodeType ) : void
nodeType NodeType NodeType to delete
return void
		public abstract void DeleteNodeType(NodeType nodeType);

Usage Example

コード例 #1
0
        private static void WriteDeleteNodeType(SchemaWriter writer, NodeType nodeType, SchemaEditor origSchema, List <PropertySet> modifiedPropertySets)
        {
            // recursive
            foreach (NodeType childType in nodeType.Children)
            {
                WriteDeleteNodeType(writer, childType, origSchema, modifiedPropertySets);
            }

            writer.DeleteNodeType(nodeType);
            if (!modifiedPropertySets.Contains(nodeType))
            {
                modifiedPropertySets.Add(nodeType);
            }
        }