Click or drag to resize
ITicketManager.RemoveAttachmentFromPost Method

[This is preliminary documentation and is subject to change.]

Removes an attachment from a post

Namespace: Netadmin.Management.Ticketing
Assembly: Netadmin.Management.Interfaces (in Netadmin.Management.Interfaces.dll) Version: release/9.0@131b654fe7332b0776120c2b44d96c6cac5ac9a2
Syntax
void RemoveAttachmentFromPost(
	long attachmentId,
	long currentUserId
)

Parameters

attachmentId
Type: System.Int64
The id of the attachment to remove
currentUserId
Type: System.Int64
The current Ticket User id
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown if currentUserId is not the same id as the author of the ticket
ObjectNotFoundExceptionThrown if the post or attachment could not be opened.
InvalidIdentifierExceptionThrown if the identifier is invalid.
See Also