TeamFoundationMailService.QueueMailJob Method (TeamFoundationRequestContext, MailMessage)
Queue a new message to be sent by the SendMailJob.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function QueueMailJob ( _
requestContext As TeamFoundationRequestContext, _
message As MailMessage _
) As MailRequest
public MailRequest QueueMailJob(
TeamFoundationRequestContext requestContext,
MailMessage message
)
public:
MailRequest^ QueueMailJob(
TeamFoundationRequestContext^ requestContext,
MailMessage^ message
)
member QueueMailJob :
requestContext:TeamFoundationRequestContext *
message:MailMessage -> MailRequest
public function QueueMailJob(
requestContext : TeamFoundationRequestContext,
message : MailMessage
) : MailRequest
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
message
Type: System.Net.Mail.MailMessageThe message to be sent.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.MailRequest
The queued request.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.