DataProviderObjectFactory.GetAssembly Method

Locates an assembly given an assembly string.

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

Syntax

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

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

Parameters

  • assemblyString
    Type: System.String

    Name of the assembly to retrieve.

Return Value

Type: System.Reflection.Assembly

Returns an assembly object instance.

Remarks

This allows a DDEX provider to customize resolving assemblies, thus allowing code to be installed in private locations rather than exclusively in the global assembly cache (GAC).

The base class implementation resolves an empty string to the assembly in which the provider's provider object factory is implemented; otherwise it calls Assembly.Load with the assembly string.

Permissions

See Also

Reference

DataProviderObjectFactory Class

DataProviderObjectFactory Members

Microsoft.VisualStudio.Data Namespace