SendGridResult Class

Summary

The result of SendGridProvider API post.
Assembly
Cake.SendGrid.dll
Namespace
Cake.SendGrid
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["SendGridResult"] class Type type-node

Syntax

public sealed class SendGridResult

Attributes

Type Description
CakeAliasCategoryAttribute

Constructors

Name Summary
SendGridResult(bool, string, string, string) Initializes a new instance of the SendGridResult class.

Properties

Name Value Summary
Error string
Gets the Error message on failure.
MessageId string
Gets a value indicating whether success or failure, Error for info on failure.
Ok bool
Gets a value indicating whether success or failure, Error for info on failure.
TimeStamp string
Gets the Timestamp of the message.

Methods

Name Value Summary
ToString() string
Convert this instance of value to a string representation.

Extension Methods

Name Value Summary
Dump<SendGridResult>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<SendGridResult>(SendGridResult[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<SendGridResult>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<SendGridResult>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<SendGridResult>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<SendGridResult>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin