Delen via


TeamFoundationMailService.ValidateMessage Method

Validate the message to be sent or queued for sending.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Sub ValidateMessage ( _
    requestContext As TeamFoundationRequestContext, _
    message As MailMessage _
)
public void ValidateMessage(
    TeamFoundationRequestContext requestContext,
    MailMessage message
)
public:
void ValidateMessage(
    TeamFoundationRequestContext^ requestContext, 
    MailMessage^ message
)
member ValidateMessage : 
        requestContext:TeamFoundationRequestContext * 
        message:MailMessage -> unit
public function ValidateMessage(
    requestContext : TeamFoundationRequestContext, 
    message : MailMessage
)

Parameters

Exceptions

Exception Condition
MailValidationException

Thrown when the message is invalid.

.NET Framework Security

See Also

Reference

TeamFoundationMailService Class

Microsoft.TeamFoundation.Framework.Server Namespace