語言

SoapServerTlb.AddServerTlb 方法

定義

根據安全選項,將伺服器類型函式庫的條目加入 Web.config 與 Default.disco 檔案,必要時產生代理檔。

public:
 virtual void AddServerTlb(System::String ^ progId, System::String ^ classId, System::String ^ interfaceId, System::String ^ srcTlbPath, System::String ^ rootWebServer, System::String ^ inBaseUrl, System::String ^ inVirtualRoot, System::String ^ clientActivated, System::String ^ wellKnown, System::String ^ discoFile, System::String ^ operation, [Runtime::InteropServices::Out] System::String ^ % strAssemblyName, [Runtime::InteropServices::Out] System::String ^ % typeName);
public void AddServerTlb(string progId, string classId, string interfaceId, string srcTlbPath, string rootWebServer, string inBaseUrl, string inVirtualRoot, string clientActivated, string wellKnown, string discoFile, string operation, out string strAssemblyName, out string typeName);
abstract member AddServerTlb : string * string * string * string * string * string * string * string * string * string * string * string * string -> unit
override this.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, inBaseUrl As String, inVirtualRoot As String, clientActivated As String, wellKnown As String, discoFile As String, operation As String, ByRef strAssemblyName As String, ByRef typeName As String)

參數

progId
String

類別的程式識別碼。

classId
String

類型庫的類別識別碼(CLSID)。

interfaceId
String

用於類型庫的 IID。

srcTlbPath
String

包含型別函式庫的檔案路徑。

rootWebServer
String

根網路伺服器。

inBaseUrl
String

包含虛擬根的基礎網址。

inVirtualRoot
String

虛擬根的名稱。

clientActivated
String

true若啟動用戶端;否則,。 false

wellKnown
String

true若為知名;否則,。 false

discoFile
String

true如果是發現檔案;否則,。 false

operation
String

要執行的手術。 指定「delete」或空字串。

strAssemblyName
String

當此方法回傳時,包含組裝名稱。

typeName
String

當此方法返回時,包含組裝的類型。

實作

例外狀況

呼叫鏈中的呼叫者沒有權限存取非管理程式碼。

SOAP 工具無法使用。

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

適用於