IDesignTimeAssemblyLoader.GetTargetAssemblyPath(AssemblyName, String, FrameworkName) 方法

定义

确定目标框架中指定程序集的加载路径。Determines the load path for the specified assembly in the target framework.

public:
 System::String ^ GetTargetAssemblyPath(System::Reflection::AssemblyName ^ runtimeOrTargetAssemblyName, System::String ^ suggestedAssemblyPath, System::Runtime::Versioning::FrameworkName ^ targetFramework);
public string GetTargetAssemblyPath (System.Reflection.AssemblyName runtimeOrTargetAssemblyName, string suggestedAssemblyPath, System.Runtime.Versioning.FrameworkName targetFramework);
abstract member GetTargetAssemblyPath : System.Reflection.AssemblyName * string * System.Runtime.Versioning.FrameworkName -> string
Public Function GetTargetAssemblyPath (runtimeOrTargetAssemblyName As AssemblyName, suggestedAssemblyPath As String, targetFramework As FrameworkName) As String

参数

runtimeOrTargetAssemblyName
AssemblyName

运行时或目标程序集的完整程序集名称。The full assembly name for the runtime or target assembly.

suggestedAssemblyPath
String

从中加载程序集的建议路径。The suggested path from which to load the assembly.

targetFramework
FrameworkName

设计器的目标框架。The target framework for the designer.

返回

String

程序集的实际加载路径;如果无法加载程序集,则为 nullThe actual load path for the assembly, or null if the assembly is not loadable.

注解

使设计器可以解析不是项目引用的程序集,并且不是 .NET Framework 重新分发的一部分的程序集。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.

适用于