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

Public method

ExtensionManager

Initializes an instance of ExtensionManager using the namespace qualified typename of the database schema provider.

Top

Methods

 

Name

Description

Public method

Equals

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

GetExtension

Overloaded. Finds an extension from loaded extensions in the current ExtensionManager.

Public method

GetExtensions<TInterfaceType>

Gets the extension types for the provided extension interface type. This method will return a list of ExtensionHandles that loaded successfully.

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetSingleExtension<TInterfaceType>

Gets a single ExtensionHandle. If the AllowMultipleExtensions property is False and the method tries to return multiple extensions, a MultipleExtensionsFoundException is thrown.

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Public methodStatic member

InstantiateType

Overloaded. Instantiates a type and casts the type to an interface type.

Public method

IsCompatibleWithCurrentProvider

Checks whether passing a Data Services Provider name or key is compatible with the current provider in this ExtensionManager.

Public method

IsExtension

Overloaded. Checks whether there is a valid extension in the current ExtensionManager.

Public methodStatic member

LoadType

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.

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public methodStatic member

SetExtensionLoadPath

Sets the extension load path. The path should include all user extensions.xml files and assemblies.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Public method

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

See Also

Reference

ExtensionManager Class

Microsoft.Data.Schema.Extensibility Namespace