Show / Hide Table of Contents

Class AttachmentEntity

The Attachment carrier represent meta data for a Service attachment

Carrier object for AttachmentEntity. Services for the AttachmentEntity Carrier is available from the Ticket Agent.
Inheritance
object
AttachmentEntity
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.7.0.0")]
public class AttachmentEntity : Carrier
Examples

Get AttachmentEntity 123 using the agent:

using SuperOffice;
using SuperOffice.CRM.Services;

using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
   var agent = new TicketAgent();
   var attachmentEntity = agent.GetAttachmentEntity( 123 );
}

Constructors

AttachmentEntity()

Default constructor

Declaration
public AttachmentEntity()
See Also
ITicketAgent

Properties

AttSize

The size (in bytes) for the attachment.

Declaration
[DataMember]
public virtual int AttSize { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

AttachmentId

The primary key (auto-incremented)

Declaration
[DataMember]
public virtual int AttachmentId { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

AuthKey

The key used for authenticating access to this attachment.

Declaration
[DataMember]
public virtual string AuthKey { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

ContentId

The content_id of this attachment, used for inline images

Declaration
[DataMember]
public virtual string ContentId { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

ContentType

The content type for the attachment (e.g. 'applaction/octet-stream' or 'application/vnd.openxmlformats-officedocument.wordprocessingml.document').

Declaration
[DataMember]
public virtual string ContentType { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

InlineImage

True if this attachment is inlined in the html_body.

Declaration
[DataMember]
public virtual bool InlineImage { get; set; }
Property Value
Type Description
bool
See Also
ITicketAgent

IsSafeFileExtension

Is file considered to be safe (based on extension and settings)

Declaration
[DataMember]
public virtual bool IsSafeFileExtension { get; set; }
Property Value
Type Description
bool
See Also
ITicketAgent

Name

The filename for the attachment.

Declaration
[DataMember]
public virtual string Name { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
string

The carrier contents.

See Also
ITicketAgent

ToString(string)

Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
string prefix

The line prefix (typically used for indenting)

Returns
Type Description
string

The carrier contents.

See Also
ITicketAgent

See Also

ITicketAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top