IRemoteFileSystemProvider.GetIsConnectedAsync(CancellationToken) 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.
Indicates whether the file system provider is connected to its remote source.
public:
System::Threading::Tasks::Task<bool> ^ GetIsConnectedAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> GetIsConnectedAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetIsConnectedAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function GetIsConnectedAsync (cancellationToken As CancellationToken) As Task(Of Boolean)
Parameters
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Returns a value indicating whether the file system provider is connected to its remote source.
Remarks
When a remote file system provider is disconnected, all of the IFileSystemProvider and IRemoteFileSystemProvider methods should throw InvalidOperationException. No DirectoryEntryChanged events will be raised for files or directories that were watched while the provider was connected. If the provider is reconnected, the behavior with respect to DirectoryEntryChanged events is implementation defined.