, //, . , , , .
, , -
var response = await client.ReadDocumentAsync(UriFactory.CreateDocumentUri(database, collection, "documentid"));
try catch, , , , Microsoft .
- .
Model myDoc = null;
try
{
var response = await client.ReadDocumentAsync(UriFactory.CreateDocumentUri(database, collection, document));
myDoc = (Model )(dynamic)response.Resource;
}
catch { }
if (myDoc != null)
{
}
, , , .
, , :
https://github.com/DamianStanger/DocumentDbDemo
Azure DocumentDB
source
share