RemoteWebConfigurationHostServer.GetData(String, Boolean, Int64) 方法
定义
在内部用于支持对配置数据的远程访问。Used internally to support remote access to configuration data.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
virtual cli::array <System::Byte> ^ GetData(System::String ^ fileName, bool getReadTimeOnly, [Runtime::InteropServices::Out] long % readTime);
public byte[] GetData (string fileName, bool getReadTimeOnly, out long readTime);
abstract member GetData : string * bool * int64 -> byte[]
override this.GetData : string * bool * int64 -> byte[]
Public Function GetData (fileName As String, getReadTimeOnly As Boolean, ByRef readTime As Long) As Byte()
参数
- fileName
- String
要访问的远程配置文件的路径。The path to the remote configuration file to be accessed.
- getReadTimeOnly
- Boolean
一个指定是否只返回 readTime 的布尔值。A Boolean value that specifies whether only the readTime is returned.
- readTime
- Int64
文件的上次访问时间。The time when the file was last accessed.
返回
- Byte[]
包含配置数据的 8 位无符号整数(字节)的 array。An array of 8-bit unsigned integers (bytes) that contains the configuration data.
实现
例外
fileName 不指向扩展名为 .config 的文件。fileName does not point to a file with the .config extension.