語言

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。

-或-

臨時檔案無法覆蓋目標檔案。

適用於