Skip to content

Commit ddb9f2c

Browse files
[Outlook] (body) Remove redundant code snippet (#2259)
1 parent 8067f80 commit ddb9f2c

File tree

17 files changed

+2
-398
lines changed

17 files changed

+2
-398
lines changed

docs/code-snippets/outlook-snippets.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -252,22 +252,6 @@ Office.AttachmentContent:interface:
252252
// Log the content of the attachments as a string.
253253
console.log(result.value.content);
254254
}
255-
Office.Body#getAsync:member(1):
256-
- |-
257-
// This example gets the body of the item as plain text.
258-
Office.context.mailbox.item.body.getAsync(
259-
"text",
260-
{ asyncContext: "This is passed to the callback" },
261-
function callback(result) {
262-
// Do something with the result.
263-
});
264-
265-
// The following is an example of the result parameter passed to the callback function.
266-
{
267-
"value": "TEXT of whole body (including threads below)",
268-
"status": "succeeded",
269-
"asyncContext": "This is passed to the callback"
270-
}
271255
Office.Body#setAsync:member(1):
272256
- |-
273257
// When including links in HTML markup, you can disable online link preview

docs/docs-ref-autogen/outlook/outlook/office.body.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -396,32 +396,6 @@ methods:
396396
messages](https://learn.microsoft.com/office/dev/add-ins/outlook/item-multi-select)<!--
397397
-->.
398398
399-
400-
#### Examples
401-
402-
403-
```TypeScript
404-
405-
// This example gets the body of the item as plain text.
406-
407-
Office.context.mailbox.item.body.getAsync(
408-
"text",
409-
{ asyncContext: "This is passed to the callback" },
410-
function callback(result) {
411-
// Do something with the result.
412-
});
413-
414-
// The following is an example of the result parameter passed to the
415-
callback function.
416-
417-
{
418-
"value": "TEXT of whole body (including threads below)",
419-
"status": "succeeded",
420-
"asyncContext": "This is passed to the callback"
421-
}
422-
423-
```
424-
425399
isPreview: false
426400
isDeprecated: false
427401
syntax:

docs/docs-ref-autogen/outlook_1_10/outlook/office.body.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -376,32 +376,6 @@ methods:
376376
links, specify `Office.CoercionType.Html` in the `getAsync` call.
377377
Otherwise, you may receive an unexpected value, such as an empty string.
378378
379-
380-
#### Examples
381-
382-
383-
```TypeScript
384-
385-
// This example gets the body of the item as plain text.
386-
387-
Office.context.mailbox.item.body.getAsync(
388-
"text",
389-
{ asyncContext: "This is passed to the callback" },
390-
function callback(result) {
391-
// Do something with the result.
392-
});
393-
394-
// The following is an example of the result parameter passed to the
395-
callback function.
396-
397-
{
398-
"value": "TEXT of whole body (including threads below)",
399-
"status": "succeeded",
400-
"asyncContext": "This is passed to the callback"
401-
}
402-
403-
```
404-
405379
isPreview: false
406380
isDeprecated: false
407381
syntax:

docs/docs-ref-autogen/outlook_1_11/outlook/office.body.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -376,32 +376,6 @@ methods:
376376
links, specify `Office.CoercionType.Html` in the `getAsync` call.
377377
Otherwise, you may receive an unexpected value, such as an empty string.
378378
379-
380-
#### Examples
381-
382-
383-
```TypeScript
384-
385-
// This example gets the body of the item as plain text.
386-
387-
Office.context.mailbox.item.body.getAsync(
388-
"text",
389-
{ asyncContext: "This is passed to the callback" },
390-
function callback(result) {
391-
// Do something with the result.
392-
});
393-
394-
// The following is an example of the result parameter passed to the
395-
callback function.
396-
397-
{
398-
"value": "TEXT of whole body (including threads below)",
399-
"status": "succeeded",
400-
"asyncContext": "This is passed to the callback"
401-
}
402-
403-
```
404-
405379
isPreview: false
406380
isDeprecated: false
407381
syntax:

docs/docs-ref-autogen/outlook_1_12/outlook/office.body.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -376,32 +376,6 @@ methods:
376376
links, specify `Office.CoercionType.Html` in the `getAsync` call.
377377
Otherwise, you may receive an unexpected value, such as an empty string.
378378
379-
380-
#### Examples
381-
382-
383-
```TypeScript
384-
385-
// This example gets the body of the item as plain text.
386-
387-
Office.context.mailbox.item.body.getAsync(
388-
"text",
389-
{ asyncContext: "This is passed to the callback" },
390-
function callback(result) {
391-
// Do something with the result.
392-
});
393-
394-
// The following is an example of the result parameter passed to the
395-
callback function.
396-
397-
{
398-
"value": "TEXT of whole body (including threads below)",
399-
"status": "succeeded",
400-
"asyncContext": "This is passed to the callback"
401-
}
402-
403-
```
404-
405379
isPreview: false
406380
isDeprecated: false
407381
syntax:

docs/docs-ref-autogen/outlook_1_13/outlook/office.body.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -376,32 +376,6 @@ methods:
376376
links, specify `Office.CoercionType.Html` in the `getAsync` call.
377377
Otherwise, you may receive an unexpected value, such as an empty string.
378378
379-
380-
#### Examples
381-
382-
383-
```TypeScript
384-
385-
// This example gets the body of the item as plain text.
386-
387-
Office.context.mailbox.item.body.getAsync(
388-
"text",
389-
{ asyncContext: "This is passed to the callback" },
390-
function callback(result) {
391-
// Do something with the result.
392-
});
393-
394-
// The following is an example of the result parameter passed to the
395-
callback function.
396-
397-
{
398-
"value": "TEXT of whole body (including threads below)",
399-
"status": "succeeded",
400-
"asyncContext": "This is passed to the callback"
401-
}
402-
403-
```
404-
405379
isPreview: false
406380
isDeprecated: false
407381
syntax:

docs/docs-ref-autogen/outlook_1_14/outlook/office.body.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -376,32 +376,6 @@ methods:
376376
links, specify `Office.CoercionType.Html` in the `getAsync` call.
377377
Otherwise, you may receive an unexpected value, such as an empty string.
378378
379-
380-
#### Examples
381-
382-
383-
```TypeScript
384-
385-
// This example gets the body of the item as plain text.
386-
387-
Office.context.mailbox.item.body.getAsync(
388-
"text",
389-
{ asyncContext: "This is passed to the callback" },
390-
function callback(result) {
391-
// Do something with the result.
392-
});
393-
394-
// The following is an example of the result parameter passed to the
395-
callback function.
396-
397-
{
398-
"value": "TEXT of whole body (including threads below)",
399-
"status": "succeeded",
400-
"asyncContext": "This is passed to the callback"
401-
}
402-
403-
```
404-
405379
isPreview: false
406380
isDeprecated: false
407381
syntax:

docs/docs-ref-autogen/outlook_1_15/outlook/office.body.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -376,32 +376,6 @@ methods:
376376
links, specify `Office.CoercionType.Html` in the `getAsync` call.
377377
Otherwise, you may receive an unexpected value, such as an empty string.
378378
379-
380-
#### Examples
381-
382-
383-
```TypeScript
384-
385-
// This example gets the body of the item as plain text.
386-
387-
Office.context.mailbox.item.body.getAsync(
388-
"text",
389-
{ asyncContext: "This is passed to the callback" },
390-
function callback(result) {
391-
// Do something with the result.
392-
});
393-
394-
// The following is an example of the result parameter passed to the
395-
callback function.
396-
397-
{
398-
"value": "TEXT of whole body (including threads below)",
399-
"status": "succeeded",
400-
"asyncContext": "This is passed to the callback"
401-
}
402-
403-
```
404-
405379
isPreview: false
406380
isDeprecated: false
407381
syntax:

docs/docs-ref-autogen/outlook_1_3/outlook/office.body.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -119,32 +119,6 @@ methods:
119119
links, specify `Office.CoercionType.Html` in the `getAsync` call.
120120
Otherwise, you may receive an unexpected value, such as an empty string.
121121
122-
123-
#### Examples
124-
125-
126-
```TypeScript
127-
128-
// This example gets the body of the item as plain text.
129-
130-
Office.context.mailbox.item.body.getAsync(
131-
"text",
132-
{ asyncContext: "This is passed to the callback" },
133-
function callback(result) {
134-
// Do something with the result.
135-
});
136-
137-
// The following is an example of the result parameter passed to the
138-
callback function.
139-
140-
{
141-
"value": "TEXT of whole body (including threads below)",
142-
"status": "succeeded",
143-
"asyncContext": "This is passed to the callback"
144-
}
145-
146-
```
147-
148122
isPreview: false
149123
isDeprecated: false
150124
syntax:

docs/docs-ref-autogen/outlook_1_4/outlook/office.body.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -119,32 +119,6 @@ methods:
119119
links, specify `Office.CoercionType.Html` in the `getAsync` call.
120120
Otherwise, you may receive an unexpected value, such as an empty string.
121121
122-
123-
#### Examples
124-
125-
126-
```TypeScript
127-
128-
// This example gets the body of the item as plain text.
129-
130-
Office.context.mailbox.item.body.getAsync(
131-
"text",
132-
{ asyncContext: "This is passed to the callback" },
133-
function callback(result) {
134-
// Do something with the result.
135-
});
136-
137-
// The following is an example of the result parameter passed to the
138-
callback function.
139-
140-
{
141-
"value": "TEXT of whole body (including threads below)",
142-
"status": "succeeded",
143-
"asyncContext": "This is passed to the callback"
144-
}
145-
146-
```
147-
148122
isPreview: false
149123
isDeprecated: false
150124
syntax:

0 commit comments

Comments
 (0)