Amazon.CognitoSync.SyncManager.CognitoSyncManager.RefreshDatasetMetadataAsync C# (CSharp) 메소드

RefreshDatasetMetadataAsync() 공개 메소드

Refreshes dataset metadata. Dataset metadata is pulled from remote storage and stored in local storage. Their record data isn't pulled down until you sync each dataset.
Thrown when fail to fresh dataset metadata
public RefreshDatasetMetadataAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task>
cancellationToken System.Threading.CancellationToken /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
리턴 Task>
        public async Task<List<DatasetMetadata>> RefreshDatasetMetadataAsync(CancellationToken cancellationToken = default(CancellationToken))
        {
            List<DatasetMetadata> response = await Remote.ListDatasetMetadataAsync(cancellationToken).ConfigureAwait(false);
            Local.UpdateDatasetMetadata(IdentityId, response);
            return response;
        }
    }

Same methods

CognitoSyncManager::RefreshDatasetMetadataAsync ( AmazonCognitoSyncCallback callback, AsyncOptions options = null ) : void