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.CMSAssembly: 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 = ""
)
<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 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
ISchemaThe newly created schema.
RemarksThis method is deprecated. Please use the new
CreateSchema method instead.
See Also