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 SourceAdd(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. |
Clear()
Clears the collection of catalogs.
Declaration
public void Clear()
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 |
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. |
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; |