Interface IFileTypeCollection
Represents a collection of deployable file types used for each specific entity type.
Namespace: Umbraco.Cms.Core.Deploy
Assembly: Umbraco.Core.dll
Syntax
public interface IFileTypeCollection
Properties
View SourceItem[String]
Gets the IFileType for the specified entity type.
Declaration
IFileType this[string entityType] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | entityType | The entity type. |
Property Value
Type | Description |
---|---|
IFileType | The IFileType. |
Methods
View SourceContains(String)
Determines whether this collection contains a file type for the specified entity type.
Declaration
bool Contains(string entityType)
Parameters
Type | Name | Description |
---|---|---|
System.String | entityType | The entity type. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetEntityTypes()
Gets the entity types.
Declaration
ICollection<string> GetEntityTypes()
Returns
Type | Description |
---|---|
ICollection<System.String> | The entity types. |
TryGetValue(String, out IFileType)
Gets the IFileType for the specified entity type.
Declaration
bool TryGetValue(string entityType, out IFileType fileType)
Parameters
Type | Name | Description |
---|---|---|
System.String | entityType | The entity type. |
IFileType | fileType | When this method returns, contains the file type associated with the specified entity type, if the item is found; otherwise, |
Returns
Type | Description |
---|---|
System.Boolean |
|