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
- contractName
Type: System.String
- values
Type: System.Collections.Generic.IEnumerable<T>%
Return Value
Type: System.Boolean
.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.
See Also
Reference
VsExportProviderService Members