RemoteWebConfigurationHostServer.WriteData Method (String, String, Byte[], Int64)


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

Used internally to support remote access to configuration data.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public void WriteData(
	string fileName,
	string templateFileName,
	byte[] data,
	ref long readTime


Type: System.String

The path to the remote configuration file to be accessed.

Type: System.String

The file to duplicate file attributes from.

Type: System.Byte[]

The data to be written.

Type: System.Int64

The time when the file was last accessed.

Exception Condition

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.

.NET Framework
Available since 2.0
Return to top