Click or drag to resize

ISchemaManagerCreateSchema(String, String, Int32, Boolean, Boolean, String, IPagePresentationCollection, String) Method


Note: This API is now obsolete.

Creates a new Schema. This can be either a page or component schema.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
[ObsoleteAttribute]
ISchema CreateSchema(
	string name,
	string friendlyName,
	int icon,
	bool isComponent,
	bool isViewPage,
	string viewNameorStylesheetName,
	IPagePresentationCollection presentations = null,
	string thumbnailPath = ""
)

Parameters

name  String
The new schema's root element name. This must be a valid XML element name.
friendlyName  String
The new schema's friendly name. This can be any name you choose, but it's recommended that you limit its length.
icon  Int32
An icon ID, which corresponds to an icon image.
isComponent  Boolean
If true, the schema creates a component. If false, it creates a page.
isViewPage  Boolean
Specifies whether page this schema creates will render using MVC views or XSLT style sheets. Has no effect if "isComponent" is true.
viewNameorStylesheetName  String
Specifies the view or XSLT style sheet file name for the pages created from this schema. If "isViewPage" is true, it will be the view name; otherwise, it will be the XSLT entry style sheet file name.
presentations  IPagePresentationCollection  (Optional)
Optional. If provided initializes the new schema's presentations collection with this collection.
thumbnailPath  String  (Optional)
Optional file path for the new schema's thumbnail.

Return Value

ISchema
The newly created schema.
Remarks
This method is deprecated. Please use the new CreateSchema method instead.
See Also