Share via


IRemoteFileSystemProvider.GetIsConnectedAsync(CancellationToken) Method

Definition

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.

Applies to