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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
message
Type: System.Net.Mail.MailMessageThe message.
Exceptions
Exception | Condition |
---|---|
MailValidationException | Thrown when the message is invalid. |
.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.