コード例 #1
0
        private async void GetVocab_OnClick(object sender, RoutedEventArgs e)
        {
            var vocabClient            = _connection.CreateVocabularyClient();
            IList <VocabularyKey> keys = (await vocabClient.GetVocabularyKeysAsync()).ToList();

            VocabularyKey key = keys[4];

            Vocabulary vocab = await vocabClient.GetVocabularyAsync(key);

            if (vocab.IsTruncated)
            {
                VocabularyKey key2   = new VocabularyKey(key.Name, key.Family, key.Version, vocab.Values.Last().Value);
                Vocabulary    vocab2 = await vocabClient.GetVocabularyAsync(key2);

                OutputBlock.Text = $"There are {vocab2.Count} items on the second call";
            }
            else
            {
                OutputBlock.Text = $"There are {vocab.Count} items";
            }
        }