VsExportProviderService.TryGetExport<T> Method (String, Lazy%)
Namespace: Microsoft.VisualStudio.ExtensibilityHosting
Assembly: Microsoft.VisualStudio.ExtensibilityHosting (in Microsoft.VisualStudio.ExtensibilityHosting.dll)
Syntax
'Dichiarazione
Public Shared Function TryGetExport(Of T) ( _
contractName As String, _
<OutAttribute> ByRef export As Lazy _
) As Boolean
public static bool TryGetExport<T>(
string contractName,
out Lazy export
)
public:
generic<typename T>
static bool TryGetExport(
String^ contractName,
[OutAttribute] Lazy^% export
)
static member TryGetExport :
contractName:string *
export:Lazy byref -> bool
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- contractName
Type: System.String
- export
Type: System.Lazy<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.