ExtensionManager.GetSingleExtension<TInterfaceType> Method
Gets a single ExtensionHandle. If the AllowMultipleExtensions property is False and the method tries to return multiple extensions, a MultipleExtensionsFoundException is thrown.
Namespace: Microsoft.Data.Schema.Extensibility
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Function GetSingleExtension(Of TInterfaceType As {Class, IExtension}) As ExtensionHandle(Of TInterfaceType)
'Usage
Dim instance As ExtensionManager
Dim returnValue As ExtensionHandle(Of TInterfaceType)
returnValue = instance.GetSingleExtension()
public ExtensionHandle<TInterfaceType> GetSingleExtension<TInterfaceType>()
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
ExtensionHandle<TInterfaceType>^ GetSingleExtension()
JScript does not support generic types or methods.
Type Parameters
- TInterfaceType
Return Value
Type: Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
[T:Microsoft.VisualStudio.TeamSystem.Data.Extensibility.ExtensionHandle<TInterfaceType>] is the ExtensionHandle object that implements the <TInterfaceType> interface.
.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.