语言

Manager.GetCodeBase(String, String, String) 方法

定义

从传入 URL 字符串中获取代码基和应用程序名称。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static bool GetCodeBase(System::String ^ pURL, [Runtime::InteropServices::Out] System::String ^ % codeBase, [Runtime::InteropServices::Out] System::String ^ % application);
public static bool GetCodeBase(string pURL, out string codeBase, out string application);
static member GetCodeBase : string * string * string -> bool
Public Shared Function GetCodeBase (pURL As String, ByRef codeBase As String, ByRef application As String) As Boolean

参数

pURL
String

代码库的 URL。

codeBase
String

此方法返回时,包含代码库的路径。

application
String

此方法返回时,包含应用程序名称。

返回

true 如果找到了基本代码,则为 ;否则,为 false.

适用于