TeamFoundationExtensionUtility.LoadExtensions<T> Method
Loads and instantiates classes of type T that are directly attributed with an ExportAttribute or inherit from a type attributed with an InheritedExportAttribute. The target classes must have a default constructor.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Shared Function LoadExtensions(Of T) ( _
pluginDirectory As String _
) As DisposableCollection(Of T)
public static DisposableCollection<T> LoadExtensions<T>(
string pluginDirectory
)
public:
generic<typename T>
static DisposableCollection<T>^ LoadExtensions(
String^ pluginDirectory
)
static member LoadExtensions :
pluginDirectory:string -> DisposableCollection<'T>
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
pluginDirectory
Type: System.StringThe directory of the assemblies used to load the extensions.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.DisposableCollection<T>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.