Compartir a través de


DataProviderObjectFactory.GetAssembly Method

Locates an assembly given an assembly string.

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

Syntax

'Declaración
Public Overridable Function GetAssembly ( _
    assemblyString As String _
) As Assembly
public virtual Assembly GetAssembly(
    string assemblyString
)
public:
virtual Assembly^ GetAssembly(
    String^ assemblyString
)
abstract GetAssembly : 
        assemblyString:string -> Assembly 
override GetAssembly : 
        assemblyString:string -> Assembly 
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.

.NET Framework Security

See Also

Reference

DataProviderObjectFactory Class

Microsoft.VisualStudio.Data Namespace