ClientRemotingConfig.Write 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在啟用 SOAP 的 COM+ 應用程式中,為客戶端類型函式庫建立一個用戶端遠端設定檔。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
static bool Write(System::String ^ DestinationDirectory, System::String ^ VRoot, System::String ^ BaseUrl, System::String ^ AssemblyName, System::String ^ TypeName, System::String ^ ProgId, System::String ^ Mode, System::String ^ Transport);
public static bool Write(string DestinationDirectory, string VRoot, string BaseUrl, string AssemblyName, string TypeName, string ProgId, string Mode, string Transport);
static member Write : string * string * string * string * string * string * string * string -> bool
Public Shared Function Write (DestinationDirectory As String, VRoot As String, BaseUrl As String, AssemblyName As String, TypeName As String, ProgId As String, Mode As String, Transport As String) As Boolean
參數
- DestinationDirectory
- String
建立設定檔的資料夾。
- VRoot
- String
虛擬根的名稱。
- BaseUrl
- String
包含虛擬根的基礎網址。
- AssemblyName
- String
包含對應型別庫的通用語言執行時(CLR)元資料的組合語言的顯示名稱。
- TypeName
- String
包含 CLR 元資料的集合體的完全限定名稱,對應於該型別函式庫。
- ProgId
- String
類別的程式識別碼。
- Mode
- String
啟動模式。
- Transport
- String
未使用。 請指定 null 此參數。
傳回
true 如果成功建立用戶端遠端設定檔;否則 false。
備註
靜態 Write 方法由類別呼叫 Publish ,並從客戶端型函式庫(帶有 .tlb 副檔名)產生 COM 介面。 該 Publish 類別在支援 SOAP 的 COM+ 應用程式中發佈 COM 介面。
Write 不需要直接叫。 取而代之的是呼叫 ProcessClientTlb 類別 Publish 的方法。
BaseUrl與VRoot參數值會串接(如有需要,使用路徑分隔符)形成用戶端元素的URL屬性值。
該 AssemblyName 參數識別一個包含 CLR 元資料的組合語言,該 Publish組建已透過該 GenerateMetadata 類別為用戶端類型函式庫產生。