C# Class SendGrid.Net.Mail.Attachment

Inheritance: AttachmentBase
ファイルを表示 Open project: advancedrei/sendgridplus-csharp Class Usage Examples

Public Methods

Method Description
Attachment ( Stream contentStream, ContentType contentType ) : System
Attachment ( Stream contentStream, string name ) : System
Attachment ( Stream contentStream, string name, string mediaType ) : System
Attachment ( string fileName ) : System
Attachment ( string fileName, ContentType contentType ) : System
Attachment ( string fileName, string mediaType ) : System
CreateAttachmentFromString ( string content, ContentType contentType ) : Attachment
CreateAttachmentFromString ( string content, string name ) : Attachment
CreateAttachmentFromString ( string content, string name, Encoding contentEncoding, string mediaType ) : Attachment

Private Methods

Method Description
InitName ( string fileName ) : void

Method Details

Attachment() public method

public Attachment ( Stream contentStream, ContentType contentType ) : System
contentStream Stream
contentType SendGrid.Net.Mime.ContentType
return System

Attachment() public method

public Attachment ( Stream contentStream, string name ) : System
contentStream Stream
name string
return System

Attachment() public method

public Attachment ( Stream contentStream, string name, string mediaType ) : System
contentStream Stream
name string
mediaType string
return System

Attachment() public method

public Attachment ( string fileName ) : System
fileName string
return System

Attachment() public method

public Attachment ( string fileName, ContentType contentType ) : System
fileName string
contentType SendGrid.Net.Mime.ContentType
return System

Attachment() public method

public Attachment ( string fileName, string mediaType ) : System
fileName string
mediaType string
return System

CreateAttachmentFromString() public static method

public static CreateAttachmentFromString ( string content, ContentType contentType ) : Attachment
content string
contentType SendGrid.Net.Mime.ContentType
return Attachment

CreateAttachmentFromString() public static method

public static CreateAttachmentFromString ( string content, string name ) : Attachment
content string
name string
return Attachment

CreateAttachmentFromString() public static method

public static CreateAttachmentFromString ( string content, string name, Encoding contentEncoding, string mediaType ) : Attachment
content string
name string
contentEncoding System.Text.Encoding
mediaType string
return Attachment