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.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
Properties
AttSize
The size (in bytes) for the attachment.
Declaration
[DataMember]
public virtual int AttSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
AttachmentId
The primary key (auto-incremented)
Declaration
[DataMember]
public virtual int AttachmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
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
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
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
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
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
Name
The filename for the attachment.
Declaration
[DataMember]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The carrier contents. |
See Also
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. |