Class MigrationManifestEntryCollection
Default IMigrationManifestEntryCollection implementation.
Implements
Namespace: Tableau.Migration.Engine.Manifest
Assembly: Tableau.Migration.dll
Syntax
public class MigrationManifestEntryCollection : IMigrationManifestEntryCollectionEditor, IMigrationManifestEntryCollection, IEnumerable<IMigrationManifestEntry>, IEnumerable, IEquatable<IMigrationManifestEntryCollection>
Constructors
MigrationManifestEntryCollection(ISharedResourcesLocalizer, ILoggerFactory, IMigrationManifestEntryCollection?)
Creates a new MigrationManifestEntryCollection object.
Declaration
public MigrationManifestEntryCollection(ISharedResourcesLocalizer localizer, ILoggerFactory loggerFactory, IMigrationManifestEntryCollection? copy = null)
Parameters
Type | Name | Description |
---|---|---|
ISharedResourcesLocalizer | localizer | A localizer. |
ILoggerFactory | loggerFactory | A logger factory. |
IMigrationManifestEntryCollection | copy | An optional collection to deep copy entries from. |
Methods
CopyTo(IMigrationManifestEntryCollectionEditor)
Deep copies all the entries in this collection to another collection.
Declaration
public void CopyTo(IMigrationManifestEntryCollectionEditor copyTo)
Parameters
Type | Name | Description |
---|---|---|
IMigrationManifestEntryCollectionEditor | copyTo | The collection to deep copy entries to. |
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? other)
Parameters
Type | Name | Description |
---|---|---|
object | other |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
Equals(IMigrationManifestEntryCollection?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public virtual bool Equals(IMigrationManifestEntryCollection? other)
Parameters
Type | Name | Description |
---|---|---|
IMigrationManifestEntryCollection | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
ForContentType(Type)
Gets the manifest entries for a given content type.
Declaration
public IMigrationManifestContentTypePartition ForContentType(Type contentType)
Parameters
Type | Name | Description |
---|---|---|
Type | contentType | The content type. |
Returns
Type | Description |
---|---|
IMigrationManifestContentTypePartition | The set of manifest entries for the content type. |
ForContentType<TContent>()
Gets the manifest entries for a given content type.
Declaration
public IMigrationManifestContentTypePartition ForContentType<TContent>()
Returns
Type | Description |
---|---|
IMigrationManifestContentTypePartition | The set of manifest entries for the content type. |
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<IMigrationManifestEntry> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<IMigrationManifestEntry> | An enumerator that can be used to iterate through the collection. |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
GetOrCreatePartition(Type)
Creates a partition of manifest entries for a given content type.
Declaration
public IMigrationManifestContentTypePartitionEditor GetOrCreatePartition(Type contentType)
Parameters
Type | Name | Description |
---|---|---|
Type | contentType | The content type. |
Returns
Type | Description |
---|---|
IMigrationManifestContentTypePartitionEditor | The created partition to add manifest entries to. |
GetOrCreatePartition<TContent>()
Creates a partition of manifest entries for a given content type.
Declaration
public IMigrationManifestContentTypePartitionEditor GetOrCreatePartition<TContent>()
Returns
Type | Description |
---|---|
IMigrationManifestContentTypePartitionEditor | The created partition to add manifest entries to. |
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
GetPartitionTypes()
Returns a list of all the partition type this collection has.
Declaration
public IEnumerable<Type> GetPartitionTypes()
Returns
Type | Description |
---|---|
IEnumerable<Type> | List of partion types |
Operators
operator ==(MigrationManifestEntryCollection?, MigrationManifestEntryCollection?)
Declaration
public static bool operator ==(MigrationManifestEntryCollection? a, MigrationManifestEntryCollection? b)
Parameters
Type | Name | Description |
---|---|---|
MigrationManifestEntryCollection | a | |
MigrationManifestEntryCollection | b |
Returns
Type | Description |
---|---|
bool |
operator !=(MigrationManifestEntryCollection?, MigrationManifestEntryCollection?)
Declaration
public static bool operator !=(MigrationManifestEntryCollection? a, MigrationManifestEntryCollection? b)
Parameters
Type | Name | Description |
---|---|---|
MigrationManifestEntryCollection | a | |
MigrationManifestEntryCollection | b |
Returns
Type | Description |
---|---|
bool |