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 = ""
)
<ObsoleteAttribute>
Function CreateSchema (
name As String,
friendlyName As String,
icon As Integer,
isComponent As Boolean,
isViewPage As Boolean,
viewNameorStylesheetName As String,
Optional presentations As IPagePresentationCollection = Nothing,
Optional thumbnailPath As String = ""
) As ISchema
[ObsoleteAttribute]
ISchema^ CreateSchema(
String^ name,
String^ friendlyName,
int icon,
bool isComponent,
bool isViewPage,
String^ viewNameorStylesheetName,
IPagePresentationCollection^ presentations = nullptr,
String^ thumbnailPath = L""
)
[<ObsoleteAttribute>]
abstract CreateSchema :
name : string *
friendlyName : string *
icon : int *
isComponent : bool *
isViewPage : bool *
viewNameorStylesheetName : string *
?presentations : IPagePresentationCollection *
?thumbnailPath : string
(* Defaults:
let _presentations = defaultArg presentations null
let _thumbnailPath = defaultArg thumbnailPath ""
*)
-> ISchema
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:
ISchemaThe newly created schema.
Remarks This method is deprecated. Please use the new
CreateSchema method instead.
See Also