IDesignTimeAssemblyLoader.GetTargetAssemblyPath 方法

定義

決定目標框架中指定組件的載荷路徑。

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

執行時或目標組裝的完整組合名稱。

suggestedAssemblyPath
String

建議的裝載組裝路徑。

targetFramework
FrameworkName

設計師的目標框架。

傳回

組件的實際載重路徑,或 null 是否組件不可裝載。

備註

讓設計師有機會解析非專案參考且不屬於 .NET Framework 重新發行的組件。 同時也允許設計者更改路徑,防止任何執行時組件被鎖定。

適用於