共用方式為


RemoteWebConfigurationHostServer.GetData(String, Boolean, Int64) 方法

定義

供內部使用,以支援組態資料的遠端存取。

此 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

要存取之遠端組態檔的路徑。

getReadTimeOnly
Boolean

布林值,指定是否只傳回 readTime

readTime
Int64

上次存取檔案的時間。

傳回

Byte[]

8 位元不帶正負號整數 (位元組) 的 array,其中包含組態資料。

實作

例外狀況

fileName 不會指向 .config 副檔名的檔案。

適用於

另請參閱