Manager.GetCodeBase(String, String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從傳入的 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
程式碼庫的網址。
- codeBase
- String
當此方法回傳時,包含程式碼庫的路徑。
- application
- String
當此方法回傳時,包含應用程式名稱。
傳回
true如果找到了程式碼庫;否則,。 false