Share via


DataSourceSpecializer.GetAssembly Method

Locates an assembly given an assembly string and data source guid.

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

Syntax

'Declaration
Public Overridable Function GetAssembly ( _
    dataSource As Guid, _
    assemblyString As String _
) As Assembly
public virtual Assembly GetAssembly(
    Guid dataSource,
    string assemblyString
)
public:
virtual Assembly^ GetAssembly(
    Guid dataSource, 
    String^ assemblyString
)
abstract GetAssembly : 
        dataSource:Guid * 
        assemblyString:string -> Assembly 
override GetAssembly : 
        dataSource:Guid * 
        assemblyString:string -> Assembly 
public function GetAssembly(
    dataSource : Guid, 
    assemblyString : String
) : Assembly

Parameters

  • assemblyString
    Type: System.String
    Name of the assembly to retrieve.

Return Value

Type: System.Reflection.Assembly
Returns an assembly.

Remarks

This method 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

DataSourceSpecializer Class

Microsoft.VisualStudio.Data Namespace