Show / Hide Table of Contents

Class DownloadedPartCatalogCollection

Holds a collection of composable part catalogs keyed by module info.

Inheritance
System.Object
DownloadedPartCatalogCollection
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.MefExtensions
Assembly: Sartorius.SAF.Presentation.dll
Syntax
[Export]
[PartCreationPolicy(CreationPolicy.Shared)]
public class DownloadedPartCatalogCollection

Methods

View Source

Add(ModuleInfo, ComposablePartCatalog)

Adds the specified catalog using the module info as a key.

Declaration
public void Add(ModuleInfo moduleInfo, ComposablePartCatalog catalog)
Parameters
Type Name Description
ModuleInfo moduleInfo

The module info.

System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog

The catalog.

View Source

Clear()

Clears the collection of catalogs.

Declaration
public void Clear()
View Source

Get(ModuleInfo)

Gets the catalog for the specified module info.

Declaration
public ComposablePartCatalog Get(ModuleInfo moduleInfo)
Parameters
Type Name Description
ModuleInfo moduleInfo

The module info.

Returns
Type Description
System.ComponentModel.Composition.Primitives.ComposablePartCatalog
View Source

Remove(ModuleInfo)

Removes the catalgo for the specified module info.

Declaration
public void Remove(ModuleInfo moduleInfo)
Parameters
Type Name Description
ModuleInfo moduleInfo

The module info.

View Source

TryGet(ModuleInfo, out ComposablePartCatalog)

Tries to ge the catalog for the specified module info.

Declaration
public bool TryGet(ModuleInfo moduleInfo, out ComposablePartCatalog catalog)
Parameters
Type Name Description
ModuleInfo moduleInfo

The module info.

System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog

The catalog.

Returns
Type Description
System.Boolean

true if found; otherwise false;

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX