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
)
Function AssetSchemaByExtention (
extension As String,
Optional preFetchedSchemas As IEnumerable(Of IAssetSchema) = Nothing
) As IAssetSchema
IAssetSchema^ AssetSchemaByExtention(
String^ extension,
IEnumerable<IAssetSchema^>^ preFetchedSchemas = nullptr
)
abstract AssetSchemaByExtention :
extension : string *
?preFetchedSchemas : IEnumerable<IAssetSchema>
(* Defaults:
let _preFetchedSchemas = defaultArg preFetchedSchemas null
*)
-> IAssetSchema
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:
IAssetSchemaA
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