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
程式碼基底的 URL。
- codeBase
- String
此方法傳回時,會包含程式碼基底的路徑。
- application
- String
此方法傳回時,會包含應用程式名稱。
傳回
若找到程式碼基底,則為 true
;否則為 false
。