RemoteWebConfigurationHostServer.WriteData Method (String, String, Byte(), Int64)
.NET Framework (current version)
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.
Assembly: System.Web (in System.Web.dll)
Public Sub WriteData ( fileName As String, templateFileName As String, data As Byte(), ByRef readTime As Long )
Parameters
- fileName
-
Type:
System.String
The path to the remote configuration file to be accessed.
- templateFileName
-
Type:
System.String
The file to duplicate file attributes from.
- data
-
Type:
System.Byte()
The data to be written.
- readTime
-
Type:
System.Int64
The time when the file was last accessed.
| Exception | Condition |
|---|---|
| Exception | 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
Available since 2.0
Show: