Skip to content

Commit 611c422

Browse files
authored
Merge pull request #185328 from rido-min/rido-min-patch-1
Update default sample to match latest API changes
2 parents af609c7 + fc4c6b8 commit 611c422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/iot-develop/concepts-model-repository.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ The client accepts a `DTMI` as input and returns a dictionary with all required
5858
using Azure.IoT.ModelsRepository;
5959

6060
var client = new ModelsRepositoryClient();
61-
IDictionary<string, string> models = client.GetModels("dtmi:com:example:TemperatureController;1");
62-
models.Keys.ToList().ForEach(k => Console.WriteLine(k));
61+
ModelResult models = client.GetModel("dtmi:com:example:TemperatureController;1");
62+
models.Content.Keys.ToList().ForEach(k => Console.WriteLine(k));
6363
```
6464

6565
The expected output should display the `DTMI` of the three interfaces found in the dependency chain:

0 commit comments

Comments
 (0)