@@ -69,7 +69,8 @@ Uri endpoint = new Uri("<endpoint>");
6969AzureKeyCredential credential = new AzureKeyCredential("<key>");
7070DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
7171
72- Operation<AnalyzeResult> operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-layout");
72+ AnalyzeDocumentOptions analyzeRequest = new AnalyzeDocumentOptions();
73+ Operation<AnalyzeResult> operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-layout", analyzeRequest);
7374AnalyzeResult responseData = operation.Value;
7475]]> </code >
7576This sample shows how to call AnalyzeDocumentAsync.
@@ -78,7 +79,8 @@ Uri endpoint = new Uri("<endpoint>");
7879AzureKeyCredential credential = new AzureKeyCredential("<key>");
7980DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
8081
81- Operation<AnalyzeResult> operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "customModel");
82+ AnalyzeDocumentOptions analyzeRequest = new AnalyzeDocumentOptions();
83+ Operation<AnalyzeResult> operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "customModel", analyzeRequest);
8284AnalyzeResult responseData = operation.Value;
8385]]> </code ></example >
8486 </member >
@@ -90,7 +92,8 @@ Uri endpoint = new Uri("<endpoint>");
9092AzureKeyCredential credential = new AzureKeyCredential("<key>");
9193DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
9294
93- Operation<AnalyzeResult> operation = client.AnalyzeDocument(WaitUntil.Completed, "prebuilt-layout");
95+ AnalyzeDocumentOptions analyzeRequest = new AnalyzeDocumentOptions();
96+ Operation<AnalyzeResult> operation = client.AnalyzeDocument(WaitUntil.Completed, "prebuilt-layout", analyzeRequest);
9497AnalyzeResult responseData = operation.Value;
9598]]> </code >
9699This sample shows how to call AnalyzeDocument.
@@ -99,7 +102,8 @@ Uri endpoint = new Uri("<endpoint>");
99102AzureKeyCredential credential = new AzureKeyCredential("<key>");
100103DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
101104
102- Operation<AnalyzeResult> operation = client.AnalyzeDocument(WaitUntil.Completed, "customModel");
105+ AnalyzeDocumentOptions analyzeRequest = new AnalyzeDocumentOptions();
106+ Operation<AnalyzeResult> operation = client.AnalyzeDocument(WaitUntil.Completed, "customModel", analyzeRequest);
103107AnalyzeResult responseData = operation.Value;
104108]]> </code ></example >
105109 </member >
@@ -205,7 +209,12 @@ Uri endpoint = new Uri("<endpoint>");
205209AzureKeyCredential credential = new AzureKeyCredential("<key>");
206210DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
207211
208- Operation<AnalyzeBatchResult> operation = await client.AnalyzeBatchDocumentsAsync(WaitUntil.Completed, "customModel");
212+ AnalyzeBatchDocumentsOptions analyzeBatchRequest = new AnalyzeBatchDocumentsOptions(new Uri("https://myStorageAccount.blob.core.windows.net/myOutputContainer?mySasToken"))
213+ {
214+ ResultPrefix = "trainingDocsResult/",
215+ OverwriteExisting = true,
216+ };
217+ Operation<AnalyzeBatchResult> operation = await client.AnalyzeBatchDocumentsAsync(WaitUntil.Completed, "customModel", analyzeBatchRequest);
209218AnalyzeBatchResult responseData = operation.Value;
210219]]> </code ></example >
211220 </member >
@@ -217,7 +226,12 @@ Uri endpoint = new Uri("<endpoint>");
217226AzureKeyCredential credential = new AzureKeyCredential("<key>");
218227DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
219228
220- Operation<AnalyzeBatchResult> operation = client.AnalyzeBatchDocuments(WaitUntil.Completed, "customModel");
229+ AnalyzeBatchDocumentsOptions analyzeBatchRequest = new AnalyzeBatchDocumentsOptions(new Uri("https://myStorageAccount.blob.core.windows.net/myOutputContainer?mySasToken"))
230+ {
231+ ResultPrefix = "trainingDocsResult/",
232+ OverwriteExisting = true,
233+ };
234+ Operation<AnalyzeBatchResult> operation = client.AnalyzeBatchDocuments(WaitUntil.Completed, "customModel", analyzeBatchRequest);
221235AnalyzeBatchResult responseData = operation.Value;
222236]]> </code ></example >
223237 </member >
0 commit comments