IInternalConfigHost.IsFile(String) 方法

定义

返回一个值,该值指示对象用于 Stream 读取配置文件的文件路径是否为有效路径。

public:
 bool IsFile(System::String ^ streamName);
public bool IsFile(string streamName);
abstract member IsFile : string -> bool
Public Function IsFile (streamName As String) As Boolean

参数

streamName
String

一个字符串,表示在配置文件上执行 I/O 任务的对象的名称 Stream

返回

true 如果对象用来 Stream 读取配置文件的路径是有效的路径,则为 ;否则为 false

适用于