Class Message.Attachment
Implements
System.IEquatable<Row>
System.Collections.Generic.IEnumerable<System.Object>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Web.Messaging
Assembly: NFX.Web.dll
Syntax
[Serializable]
public class Attachment : TypedRow, IConfigurable, IConfigurationPersistent, IEquatable<Row>, IEnumerable<object>, IEnumerable, IValidatable, IJSONWritable
Constructors
Attachment(String, Byte[], String)
Declaration
public Attachment(string name, byte[] content, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Byte[] | content | |
System.String | contentType |
Properties
Content
Declaration
[Field("*", StoreFlag.LoadAndStore, false, DataKind.Text, false, true, null, null, null, null, 0, 0, CharCase.AsIs, "ct", null, null, null, false, null, null, null, true)]
public byte[] Content { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
ContentType
Declaration
[Field("*", StoreFlag.LoadAndStore, false, DataKind.Text, false, true, null, null, null, null, 0, 0, CharCase.AsIs, "tp", null, null, null, false, null, null, null, true)]
public string ContentType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ContentURL
Declaration
[Field("*", StoreFlag.LoadAndStore, false, DataKind.Text, false, true, null, null, null, null, 0, 0, CharCase.AsIs, "curl", null, null, null, false, null, null, null, true)]
public string ContentURL { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HasContent
Returns true to indicate that the content has fetched either as byte[] or URL (that yet needs to be fetched). This is used in fetching messages back from the store where their attachemnts must be fetched using a separate call due to their sheer size
Declaration
public bool HasContent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Declaration
[Field("*", StoreFlag.LoadAndStore, false, DataKind.Text, false, true, null, null, null, null, 0, 0, CharCase.AsIs, "nm", null, null, null, false, null, null, null, true)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Implements
System.IEquatable<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable