IVsDataProvider.GetAssembly Method (String)

Resolves a provider-specific assembly string to its corresponding Assembly representation.

Namespace:  Microsoft.VisualStudio.Data.Core
Assembly:  Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)

Syntax

'宣言
Function GetAssembly ( _
    assemblyString As String _
) As Assembly
'使用
Dim instance As IVsDataProvider
Dim assemblyString As String
Dim returnValue As Assembly

returnValue = instance.GetAssembly(assemblyString)
Assembly GetAssembly(
    string assemblyString
)
Assembly^ GetAssembly(
    String^ assemblyString
)
function GetAssembly(
    assemblyString : String
) : Assembly

Parameters

  • assemblyString
    Type: System.String

    A provider-specific assembly string.

Return Value

Type: System.Reflection.Assembly

An Assembly object that represents the assembly that is resolved from the specified assembly string, if found; otherwise, a null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

The assemblyString parameter is a null reference (Nothing in Visual Basic).

[<ANY>]

The DDEX provider’s GetAssembly implementation threw an exception.

Remarks

This method delegates to the GetAssembly method, passing Empty as the value of the source parameter.

Permissions

See Also

Reference

IVsDataProvider Interface

IVsDataProvider Members

GetAssembly Overload

Microsoft.VisualStudio.Data.Core Namespace