VsExportProviderService.TryGetExportedObjects<T> Method (String, IEnumerable<T>%)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Namespace:  Microsoft.VisualStudio.ExtensibilityHosting
Assembly:  Microsoft.VisualStudio.ExtensibilityHosting (in Microsoft.VisualStudio.ExtensibilityHosting.dll)

Syntax

'Declaration
Public Shared Function TryGetExportedObjects(Of T) ( _
    contractName As String, _
    <OutAttribute> ByRef values As IEnumerable(Of T) _
) As Boolean
'Usage
Dim contractName As String
Dim values As IEnumerable(Of T)
Dim returnValue As Boolean

returnValue = VsExportProviderService.TryGetExportedObjects(contractName, _
    values)
public static bool TryGetExportedObjects<T>(
    string contractName,
    out IEnumerable<T> values
)
public:
generic<typename T>
static bool TryGetExportedObjects(
    String^ contractName, 
    [OutAttribute] IEnumerable<T>^% values
)
static member TryGetExportedObjects : 
        contractName:string * 
        values:IEnumerable<'T> byref -> bool 
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

VsExportProviderService Class

VsExportProviderService Members

TryGetExportedObjects<T> Overload

Microsoft.VisualStudio.ExtensibilityHosting Namespace