ISoapServerTlb.AddServerTlb 方法

定義

根據安全性選項將伺服器型別程式庫的項目加入 Web.config 和 Default.disco 檔案;若有必要則產生 Proxy。

public:
 void AddServerTlb(System::String ^ progId, System::String ^ classId, System::String ^ interfaceId, System::String ^ srcTlbPath, System::String ^ rootWebServer, System::String ^ baseUrl, System::String ^ virtualRoot, System::String ^ clientActivated, System::String ^ wellKnown, System::String ^ discoFile, System::String ^ operation, [Runtime::InteropServices::Out] System::String ^ % assemblyName, [Runtime::InteropServices::Out] System::String ^ % typeName);
public void AddServerTlb (string progId, string classId, string interfaceId, string srcTlbPath, string rootWebServer, string baseUrl, string virtualRoot, string clientActivated, string wellKnown, string discoFile, string operation, out string assemblyName, out string typeName);
abstract member AddServerTlb : string * string * string * string * string * string * string * string * string * string * string * string * string -> unit
Public Sub AddServerTlb (progId As String, classId As String, interfaceId As String, srcTlbPath As String, rootWebServer As String, baseUrl As String, virtualRoot As String, clientActivated As String, wellKnown As String, discoFile As String, operation As String, ByRef assemblyName As String, ByRef typeName As String)

參數

progId
String

類別的程式設計識別項。

classId
String

型別程式庫的類別識別項 (Class Identifier,CLSID)。

interfaceId
String

型別程式庫的 IID。

srcTlbPath
String

含有型別程式庫之檔案的路徑。

rootWebServer
String

根 Web 伺服器。

baseUrl
String

含有虛擬根目錄的基礎 URL。

virtualRoot
String

虛擬根目錄的名稱。

clientActivated
String

如果用戶端已啟動,則為 true,否則為 false

wellKnown
String

如果已知則為 true,否則為 false

discoFile
String

如果是探索檔,則為 true,否則為 false

operation
String

要執行的作業。 指定 "delete" 或空字串。

assemblyName
String

這個方法傳回時會包含組件的名稱。

typeName
String

這個方法傳回時會包含組件的型別。

例外狀況

呼叫鏈結中的呼叫端沒有存取 Unmanaged 程式碼的使用權限。

SOAP 公用程式無法使用。

要取得系統目錄的呼叫失敗。

適用於