MailKit.Net.Smtp.SmtpClient.GetNotifyString C# (CSharp) Method

GetNotifyString() static private method

static private GetNotifyString ( DeliveryStatusNotification notify ) : string
notify DeliveryStatusNotification
return string
		static string GetNotifyString (DeliveryStatusNotification notify)
		{
			string value = string.Empty;

			if (notify == DeliveryStatusNotification.Never)
				return "NEVER";

			if ((notify & DeliveryStatusNotification.Success) != 0)
				value += "SUCCESS,";

			if ((notify & DeliveryStatusNotification.Failure) != 0)
				value += "FAILURE,";

			if ((notify & DeliveryStatusNotification.Delay) != 0)
				value += "DELAY";

			return value.TrimEnd (',');
		}