Merge pull request #31525 from ElizabethSamuel-MSFT/office-js-remove-attachmentid-char-limit

office-js, office-js-preview: Remove attachmentId char limit
This commit is contained in:
Nathan Shively-Sanders
2018-12-19 09:24:36 -08:00
committed by GitHub
2 changed files with 68 additions and 68 deletions
+34 -34
View File
@@ -10288,19 +10288,19 @@ declare namespace Office {
*
* In addition to this signature, the method also has the following signatures:
*
* `removeAttachmentAsync(attachmentIndex: string): void;`
* `removeAttachmentAsync(attachmentId: string): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;`
* `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;`
* `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;`
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type Office.AsyncResult.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -10320,9 +10320,9 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
*/
removeAttachmentAsync(attachmentIndex: string): void;
removeAttachmentAsync(attachmentId: string): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -10342,11 +10342,11 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
*/
removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;
removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -10367,12 +10367,12 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of
* type Office.AsyncResult.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;
/**
* Removes an event handler for a supported event.
*
@@ -11614,7 +11614,7 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentId The identifier of the attachment you want to get. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment you want to get.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter,
@@ -12196,20 +12196,20 @@ declare namespace Office {
*
* In addition to this signature, the method also has the following signatures:
*
* `removeAttachmentAsync(attachmentIndex: string): void;`
* `removeAttachmentAsync(attachmentId: string): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;`
* `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;`
* `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;`
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of
* type Office.AsyncResult.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -12229,9 +12229,9 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
*/
removeAttachmentAsync(attachmentIndex: string): void;
removeAttachmentAsync(attachmentId: string): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -12251,11 +12251,11 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
*/
removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;
removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -12275,12 +12275,12 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of
* type {@link Offfice.AsyncResult}.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;
/**
* Asynchronously saves an item.
@@ -13693,20 +13693,20 @@ declare namespace Office {
*
* In addition to this signature, the method also has the following signatures:
*
* `removeAttachmentAsync(attachmentIndex: string): void;`
* `removeAttachmentAsync(attachmentId: string): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;`
* `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;`
* `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;`
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of
* type Office.AsyncResult.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -13726,9 +13726,9 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
*/
removeAttachmentAsync(attachmentIndex: string): void;
removeAttachmentAsync(attachmentId: string): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -13748,11 +13748,11 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
*/
removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;
removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -13772,12 +13772,12 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of
* type Office.AsyncResult.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;
/**
* Removes an event handler for a supported event.
*
+34 -34
View File
@@ -10288,19 +10288,19 @@ declare namespace Office {
*
* In addition to this signature, the method also has the following signatures:
*
* `removeAttachmentAsync(attachmentIndex: string): void;`
* `removeAttachmentAsync(attachmentId: string): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;`
* `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;`
* `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;`
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type Office.AsyncResult.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -10320,9 +10320,9 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
*/
removeAttachmentAsync(attachmentIndex: string): void;
removeAttachmentAsync(attachmentId: string): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -10342,11 +10342,11 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
*/
removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;
removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -10367,12 +10367,12 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of
* type Office.AsyncResult.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;
/**
* Removes an event handler for a supported event.
*
@@ -11614,7 +11614,7 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentId The identifier of the attachment you want to get. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment you want to get.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter,
@@ -12196,20 +12196,20 @@ declare namespace Office {
*
* In addition to this signature, the method also has the following signatures:
*
* `removeAttachmentAsync(attachmentIndex: string): void;`
* `removeAttachmentAsync(attachmentId: string): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;`
* `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;`
* `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;`
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of
* type Office.AsyncResult.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -12229,9 +12229,9 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
*/
removeAttachmentAsync(attachmentIndex: string): void;
removeAttachmentAsync(attachmentId: string): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -12251,11 +12251,11 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
*/
removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;
removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -12275,12 +12275,12 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of
* type {@link Offfice.AsyncResult}.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;
/**
* Asynchronously saves an item.
@@ -13693,20 +13693,20 @@ declare namespace Office {
*
* In addition to this signature, the method also has the following signatures:
*
* `removeAttachmentAsync(attachmentIndex: string): void;`
* `removeAttachmentAsync(attachmentId: string): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;`
* `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;`
*
* `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;`
* `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;`
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of
* type Office.AsyncResult.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -13726,9 +13726,9 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
*/
removeAttachmentAsync(attachmentIndex: string): void;
removeAttachmentAsync(attachmentId: string): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -13748,11 +13748,11 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
*/
removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;
removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;
/**
* Removes an attachment from a message or appointment.
*
@@ -13772,12 +13772,12 @@ declare namespace Office {
*
* <tr><td>Errors</td><td>InvalidAttachmentId - The attachment identifier does not exist.</td></tr></table>
*
* @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters.
* @param attachmentId The identifier of the attachment to remove.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of
* type Office.AsyncResult.
* If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure.
*/
removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult<void>) => void): void;
removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult<void>) => void): void;
/**
* Removes an event handler for a supported event.
*