SenseNet.ContentRepository.Storage.Schema.SchemaWriter.DeleteNodeType C# (CSharp) Метод

DeleteNodeType() публичный абстрактный Метод

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
Результат 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);
            }
        }