語言

Publish.ProcessServerTlb 方法

定義

處理伺服器型函式庫,新增或刪除 Web.config 與 Default.disco 檔案的元件條目。 必要時產生代理伺服器。

public:
 virtual void ProcessServerTlb(System::String ^ ProgId, System::String ^ SrcTlbPath, System::String ^ PhysicalPath, System::String ^ Operation, [Runtime::InteropServices::Out] System::String ^ % strAssemblyName, [Runtime::InteropServices::Out] System::String ^ % TypeName, [Runtime::InteropServices::Out] System::String ^ % Error);
public void ProcessServerTlb(string ProgId, string SrcTlbPath, string PhysicalPath, string Operation, out string strAssemblyName, out string TypeName, out string Error);
abstract member ProcessServerTlb : string * string * string * string * string * string * string -> unit
override this.ProcessServerTlb : string * string * string * string * string * string * string -> unit
Public Sub ProcessServerTlb (ProgId As String, SrcTlbPath As String, PhysicalPath As String, Operation As String, ByRef strAssemblyName As String, ByRef TypeName As String, ByRef Error As String)

參數

ProgId
String

類別的程式識別碼。

SrcTlbPath
String

包含型別庫的檔案路徑。

PhysicalPath
String

網頁應用程式目錄。

Operation
String

要執行的手術。

strAssemblyName
String

當此方法回傳時,該參數包含組件的顯示名稱。

TypeName
String

當此方法回傳時,該參數包含組件的完全限定型別名稱。

Error
String

當此方法回傳時,若遇到問題,該參數會包含錯誤訊息。

實作

例外狀況

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

SrcTlbPath參考的參數 scrobj.dll;因此,SOAP 不支援腳本元件的發佈。

備註

ProcessServerTlb 在 typelib 中為元件新增 discovery 檔案和 web.config 檔案,並為非管理元件產生或複製代理檔到 bin 目錄。 如果 Operation 等於「刪除」,則元件條目會從 Web.config 和 Default.disco 檔案中移除。

建議使用 和 AddServerTlbDeleteServerTlb 來取代 ProcessServerTlb。

適用於