Click or drag to resize

ISchemaManagerAssetSchemaByExtention Method


Retrieves the first asset schema found that allows the provided extension.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
IAssetSchema AssetSchemaByExtention(
	string extension,
	IEnumerable<IAssetSchema> preFetchedSchemas = null
)

Parameters

extension
Type: SystemString
An asset extension (e.g. ".jpg")
preFetchedSchemas (Optional)
Type: System.Collections.GenericIEnumerableIAssetSchema
A list of asset schemas to search through

Return Value

Type: IAssetSchema
A asset schema that allows the provided extension. If none are found, the Binary type schema will be returned.
Remarks
If a list of pre-fetched schemas is provided, this will be searched for a schema allowing the given extension. If a schema is not found in this list, no additional schemas will be loaded to search through and the default Binary type schema will be returned.
See Also