Class ContentLocationInPathFilter<TContent>
Base filter for content specific filters. Filters based on the ContentLocation field.
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.Filters
Assembly: Tableau.Migration.dll
Syntax
public class ContentLocationInPathFilter<TContent> : ContentFilterBase<TContent>, IContentFilter<TContent>, IMigrationHook<IEnumerable<ContentMigrationItem<TContent>>> where TContent : IContentReference
Type Parameters
Name | Description |
---|---|
TContent |
Constructors
ContentLocationInPathFilter(string, ISharedResourcesLocalizer, ILogger<IContentFilter<TContent>>)
Default constructor for ContentLocationInPathFilter<TContent>.
Declaration
public ContentLocationInPathFilter(string path, ISharedResourcesLocalizer localizer, ILogger<IContentFilter<TContent>> logger)
Parameters
Type | Name | Description |
---|---|---|
string | path | Path to filter out. |
ISharedResourcesLocalizer | localizer | A string localizer. |
ILogger<IContentFilter<TContent>> | logger | The default logger. |
Fields
Path
Path for the filter.
Declaration
public readonly string Path
Field Value
Type | Description |
---|---|
string |
Methods
ShouldMigrate(ContentMigrationItem<TContent>)
Checks if the item should be migrated.
Declaration
public override bool ShouldMigrate(ContentMigrationItem<TContent> item)
Parameters
Type | Name | Description |
---|---|---|
ContentMigrationItem<TContent> | item | The item to evaluate. |
Returns
Type | Description |
---|---|
bool | True if the item should be migrated. |