ITicketManager.RemoveAttachmentFromPost Method |
[This is preliminary documentation and is subject to change.]
Removes an attachment from a post
Namespace: Netadmin.Management.TicketingAssembly: Netadmin.Management.Interfaces (in Netadmin.Management.Interfaces.dll) Version: release/9.0@131b654fe7332b0776120c2b44d96c6cac5ac9a2
Syntaxvoid RemoveAttachmentFromPost(
long attachmentId,
long currentUserId
)
Sub RemoveAttachmentFromPost (
attachmentId As Long,
currentUserId As Long
)
Parameters
- attachmentId
- Type: System.Int64
The id of the attachment to remove - currentUserId
- Type: System.Int64
The current Ticket User id
ExceptionsException | Condition |
---|
InvalidOperationException | Thrown if currentUserId is not the same id as the author of the ticket |
ObjectNotFoundException | Thrown if the post or attachment could not be opened. |
InvalidIdentifierException | Thrown if the identifier is invalid. |
See Also