共用方式為


RemoteWebConfigurationHostServer.WriteData 方法

定義

供內部使用,以支援組態資料的遠端存取。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 virtual void WriteData(System::String ^ fileName, System::String ^ templateFileName, cli::array <System::Byte> ^ data, long % readTime);
public void WriteData (string fileName, string templateFileName, byte[] data, ref long readTime);
abstract member WriteData : string * string * byte[] * int64 -> unit
override this.WriteData : string * string * byte[] * int64 -> unit
Public Sub WriteData (fileName As String, templateFileName As String, data As Byte(), ByRef readTime As Long)

參數

fileName
String

要存取之遠端組態檔的路徑。

templateFileName
String

要從中複製檔案屬性的來源檔案。

data
Byte[]

要寫入的資料。

readTime
Int64

上次存取檔案的時間。

實作

例外狀況

fileName 不會指向 .config 副檔名的檔案。

-或-

檔案在讀取後已變更。

-或-

檔案為隱藏狀態或是唯讀的。

-或-

方法產生暫存檔失敗。

-或-

方法建立 FileStream 失敗。

-或-

暫存檔覆寫目標檔案失敗。

適用於