DirectoryCatalog Methods

.NET Framework 4.6 and 4.5

The DirectoryCatalog type exposes the following members.

  Name Description
Public method Dispose() Releases all resources used by the ComposablePartCatalog. (Inherited from ComposablePartCatalog.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the DirectoryCatalog and optionally releases the managed resources. (Overrides ComposablePartCatalog.Dispose(Boolean).)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the catalog. (Overrides ComposablePartCatalog.GetEnumerator().)
Public method GetExports Gets the export definitions that match the constraint expressed by the specified import definition. (Overrides ComposablePartCatalog.GetExports(ImportDefinition).)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnChanged Raises the Changed event.
Protected method OnChanging Raises the Changing event.
Public method Refresh Refreshes the ComposablePartDefinition objects with the latest files in the directory that match the search pattern.
Public method ToString Gets a string representation of the directory catalog. (Overrides Object.ToString().)

  Name Description
Public Extension Method CreateCompositionService Creates a new composition service by using the specified catalog as a source for exports. (Defined by CatalogExtensions.)
Public Extension Method Filter Filters the specified catalog with the specified filter function. (Defined by ScopingExtensions.)

  Name Description
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that iterates through the catalog. (Inherited from ComposablePartCatalog.)
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft