Skip to content

Commit fc4c6b8

Browse files
authored
Update default sample to match latest API changes
1 parent cd9804a commit fc4c6b8

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
@@ -50,8 +50,8 @@ The client accepts a `DTMI` as input and returns a dictionary with all required
5050
using Azure.IoT.ModelsRepository;
5151

5252
var client = new ModelsRepositoryClient();
53-
IDictionary<string, string> models = client.GetModels("dtmi:com:example:TemperatureController;1");
54-
models.Keys.ToList().ForEach(k => Console.WriteLine(k));
53+
ModelResult models = client.GetModel("dtmi:com:example:TemperatureController;1");
54+
models.Content.Keys.ToList().ForEach(k => Console.WriteLine(k));
5555
```
5656

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

0 commit comments

Comments
 (0)