RemoteWebConfigurationHostServer.WriteData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기