Share via


ExtensionManager.GetExtensions<TInterfaceType> Method

Returns a list of the extension types for the provided extension interface type that have loaded successfully.

Namespace:  Microsoft.Data.Schema.Extensibility
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Function GetExtensions(Of TInterfaceType As {Class, IExtension}) As ReadOnlyCollection(Of ExtensionHandle(Of TInterfaceType))
public ReadOnlyCollection<ExtensionHandle<TInterfaceType>> GetExtensions<TInterfaceType>()
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
ReadOnlyCollection<ExtensionHandle<TInterfaceType>^>^ GetExtensions()
member GetExtensions : unit -> ReadOnlyCollection<ExtensionHandle<'TInterfaceType>>  when 'TInterfaceType : not struct and IExtension
JScript does not support generic types or methods.

Type Parameters

  • TInterfaceType
    An interface that inherits from the IExtension interface.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ExtensionHandle<TInterfaceType>>
A ReadOnlyCollection<T> of type ExtensionHandle that contains handles of extensions that have been successfully loaded.

Remarks

The extensions that are returned are only those that are set to be compatible with the provider that is specified in the ExtensionManager by using the matching type.

.NET Framework Security

See Also

Reference

ExtensionManager Class

Microsoft.Data.Schema.Extensibility Namespace

GetExtension

ExtensionHandle

IExtension