Delen via


TeamFoundationMailService.QueueMailJob Method (TeamFoundationRequestContext, IEnumerable<MailMessage>)

Queue messages 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, _
    messages As IEnumerable(Of MailMessage) _
) As ICollection(Of MailRequest)
public ICollection<MailRequest> QueueMailJob(
    TeamFoundationRequestContext requestContext,
    IEnumerable<MailMessage> messages
)
public:
ICollection<MailRequest^>^ QueueMailJob(
    TeamFoundationRequestContext^ requestContext, 
    IEnumerable<MailMessage^>^ messages
)
member QueueMailJob : 
        requestContext:TeamFoundationRequestContext * 
        messages:IEnumerable<MailMessage> -> ICollection<MailRequest> 
public function QueueMailJob(
    requestContext : TeamFoundationRequestContext, 
    messages : IEnumerable<MailMessage>
) : ICollection<MailRequest>

Parameters

Return Value

Type: System.Collections.Generic.ICollection<MailRequest>
The result of the queuing the requests.

.NET Framework Security

See Also

Reference

TeamFoundationMailService Class

QueueMailJob Overload

Microsoft.TeamFoundation.Framework.Server Namespace