Click or drag to resize

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


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.308
Syntax
[ObsoleteAttribute]
ISchema CreateSchema(
	string name,
	string friendlyName,
	int icon,
	bool isComponent,
	bool isViewPage,
	string viewNameorStylesheetName,
	IPagePresentationCollection presentations = null,
	string thumbnailPath = ""
)

Parameters

name
Type: SystemString
The new schema's root element name. This must be a valid XML element name.
friendlyName
Type: SystemString
The new schema's friendly name. This can be any name you choose, but it's recommended that you limit its length.
icon
Type: SystemInt32
An icon ID, which corresponds to an icon image.
isComponent
Type: SystemBoolean
If true, the schema creates a component. If false, it creates a page.
isViewPage
Type: SystemBoolean
Specifies whether page this schema creates will render using MVC views or XSLT style sheets. Has no effect if "isComponent" is true.
viewNameorStylesheetName
Type: SystemString
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 (Optional)
Type: Ingeniux.CMS.PresentationIPagePresentationCollection
Optional. If provided initializes the new schema's presentations collection with this collection.
thumbnailPath (Optional)
Type: SystemString
Optional file path for the new schema's thumbnail.

Return Value

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