IDesignTimeAssemblyLoader.GetTargetAssemblyPath Method (AssemblyName, String, FrameworkName)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Determines the load path for the specified assembly in the target framework.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

string GetTargetAssemblyPath(
	AssemblyName runtimeOrTargetAssemblyName,
	string suggestedAssemblyPath,
	FrameworkName targetFramework
)

Parameters

runtimeOrTargetAssemblyName
Type: System.Reflection.AssemblyName

The full assembly name for the runtime or target assembly.

suggestedAssemblyPath
Type: System.String

The suggested path from which to load the assembly.

targetFramework
Type: System.Runtime.Versioning.FrameworkName

The target framework for the designer.

Return Value

Type: System.String

The actual load path for the assembly, or null if the assembly is not loadable.

Gives the designer an opportunity to resolve assemblies that are not project references and that are not part of the .NET Framework redistribution. Also allows the designer to alter paths to prevent any runtime assemblies from being locked.

.NET Framework
Available since 4.0
Return to top
Show: