ExtensionManager Members
Include Protected Members
Include Inherited Members
Maintains an extension context and is responsible for loading extensions. Extensions include the DatabaseSchemaProvider instance that is used by a database project. Each database project maintains a single ExtensionManager instance.
The ExtensionManager type exposes the following members.
Constructors
Name
Description
Initializes an instance of ExtensionManager using the namespace qualified typename of the database schema provider.
Top
Methods
Name
Description
Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Overloaded. Finds an extension from loaded extensions in the current ExtensionManager.
Gets the extension types for the provided extension interface type. This method will return a list of ExtensionHandles that loaded successfully.
Serves as a hash function for a particular type. (Inherited from Object.)
GetSingleExtension<TInterfaceType>
Gets a single ExtensionHandle. If the AllowMultipleExtensions property is False and the method tries to return multiple extensions, a MultipleExtensionsFoundException is thrown.
Gets the type of the current instance. (Inherited from Object.)
Overloaded. Instantiates a type and casts the type to an interface type.
IsCompatibleWithCurrentProvider
Checks whether passing a Data Services Provider name or key is compatible with the current provider in this ExtensionManager.
Overloaded. Checks whether there is a valid extension in the current ExtensionManager.
Searches for and loads satellite types that are defined in DLLs. These DLLs can be located in the GAC, the VS BaseDir, or the VSTSDB\Extensions folder.
Creates a shallow copy of the current Object. (Inherited from Object.)
Sets the extension load path. The path should include all user extensions.xml files and assemblies.
Returns a string that represents the current object. (Inherited from Object.)
TryGetSingleExtension<TInterfaceType>
Tries to acquire a single extension for <TInterfaceType>. If multiple extensions are found or if no extension is found, or if the <TInterfaceType> supports multiple extensions, the method returns False and ExtensionHandle, an out parameter, is null.
Top