편집

다음을 통해 공유


RemoteWebConfigurationHostServer.WriteData Method

Definition

Used internally to support remote access to configuration data.

This API supports the product infrastructure and is not intended to be used directly from your code.

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)

Parameters

fileName
String

The path to the remote configuration file to be accessed.

templateFileName
String

The file to duplicate file attributes from.

data
Byte[]

The data to be written.

readTime
Int64

The time when the file was last accessed.

Implements

Exceptions

fileName does not point to a file with the .config extension.

-or-

The file has changed since it was read.

-or-

The file is hidden or read-only.

-or-

The method fails to generate a temp file.

-or-

The method fails to create a FileStream.

-or-

The temp file fails to overwrite the target file.

Applies to