VsShellUtilities.TryGetPackageExtensionPoint<TExtensionPoint, TInterface> Method
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Shared Function TryGetPackageExtensionPoint(Of TExtensionPoint As Class, TInterface As Class) ( _
package As Guid, _
instance As Guid _
) As TInterface
public static TInterface TryGetPackageExtensionPoint<TExtensionPoint, TInterface>(
Guid package,
Guid instance
)
where TExtensionPoint : class
where TInterface : class
public:
generic<typename TExtensionPoint, typename TInterface>
where TExtensionPoint : ref class
where TInterface : ref class
static TInterface TryGetPackageExtensionPoint(
Guid package,
Guid instance
)
static member TryGetPackageExtensionPoint :
package:Guid *
instance:Guid -> 'TInterface when 'TExtensionPoint : not struct when 'TInterface : not struct
JScript does not support generic types or methods.
Type Parameters
- TExtensionPoint
- TInterface
Parameters
- package
Type: System.Guid
- instance
Type: System.Guid
Return Value
Type: TInterface
.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.