LinkedResource Class

LinkedResource Class

 

Represents an embedded external resource in an email attachment, such as an image in an HTML attachment.

Namespace:   System.Net.Mail
Assembly:  System (in System.dll)

System.Object
  System.Net.Mail.AttachmentBase
    System.Net.Mail.LinkedResource

public class LinkedResource : AttachmentBase

NameDescription
System_CAPS_pubmethodLinkedResource(Stream)

Initializes a new instance of LinkedResource using the supplied Stream.

System_CAPS_pubmethodLinkedResource(Stream, ContentType)

Initializes a new instance of LinkedResource with the values supplied by Stream and ContentType.

System_CAPS_pubmethodLinkedResource(Stream, String)

Initializes a new instance of LinkedResource with the specified Stream and media type.

System_CAPS_pubmethodLinkedResource(String)

Initializes a new instance of LinkedResource using the specified file name.

System_CAPS_pubmethodLinkedResource(String, ContentType)

Initializes a new instance of LinkedResource with the specified file name and content type.

System_CAPS_pubmethodLinkedResource(String, String)

Initializes a new instance of LinkedResource with the specified file name and media type.

NameDescription
System_CAPS_pubpropertyContentId

Gets or sets the MIME content ID for this attachment.(Inherited from AttachmentBase.)

System_CAPS_pubpropertyContentLink

Gets or sets a URI that the resource must match.

System_CAPS_pubpropertyContentStream

Gets the content stream of this attachment.(Inherited from AttachmentBase.)

System_CAPS_pubpropertyContentType

Gets the content type of this attachment.(Inherited from AttachmentBase.)

System_CAPS_pubpropertyTransferEncoding

Gets or sets the encoding of this attachment.(Inherited from AttachmentBase.)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateLinkedResourceFromString(String)

Creates a LinkedResource object from a string to be included in an email attachment as an embedded resource. The default media type is plain text, and the default content type is ASCII.

System_CAPS_pubmethodSystem_CAPS_staticCreateLinkedResourceFromString(String, ContentType)

Creates a LinkedResource object from a string to be included in an email attachment as an embedded resource, with the specified content type, and media type as plain text.

System_CAPS_pubmethodSystem_CAPS_staticCreateLinkedResourceFromString(String, Encoding, String)

Creates a LinkedResource object from a string to be included in an email attachment as an embedded resource, with the specified content type, and media type.

System_CAPS_pubmethodDispose()

Releases the resources used by the AttachmentBase. (Inherited from AttachmentBase.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the AttachmentBase and optionally releases the managed resources. (Inherited from AttachmentBase.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft