LinkedResource

LinkedResource class

Represents an embedded resource in a message.

public class LinkedResource : AttachmentBase

Constructors

Name Description
LinkedResource(Stream) Initializes a new instance of the LinkedResource class.
LinkedResource(string) Initializes a new instance of the LinkedResource class.
LinkedResource(Stream, ContentType) Initializes a new instance of the LinkedResource class.
LinkedResource(Stream, string) Initializes a new instance of the LinkedResource class.
LinkedResource(string, ContentType) Initializes a new instance of the LinkedResource class.
LinkedResource(string, string) Initializes a new instance of the LinkedResource class.

Properties

Name Description
ContentDisposition { get; } Gets Content-Disposition header
ContentId { get; set; } Gets or sets the content id.
ContentLink { get; set; } Gets or sets a URI that the resource must match.
ContentStream { get; set; } Gets or sets the content stream.
ContentType { get; set; } Gets or sets the type of the content.
virtual Headers { get; } Gets headers collection of attachment.
TransferEncoding { get; set; } Gets or sets the transfer encoding.

Methods

Name Description
static CreateLinkedResourceFromString(string) Creates the linked resource from string.
static CreateLinkedResourceFromString(string, ContentType) Creates the linked resource from string.
static CreateLinkedResourceFromString(string, Encoding, string) Creates the linked resource from string.
Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
virtual Save(Stream) Saves the specified stream.
virtual Save(string) Saves the specified file name.

See Also