CrmCalloutBase.PreSend Method

banner art

Specifies a method called before a send e-mail operation.

Syntax

[Visual Basic .NET]
Function PreSend(
  ByVal userContext As CalloutUserContext,
  ByVal entityContext As CalloutEntityContext,
  ByRef errorMessage As String
) As PreCalloutReturnValue

[C#]
PreCalloutReturnValue PreSend(
  CalloutUserContext  userContext,
  CalloutEntityContext  entityContext,
  ref string  errorMessage
);

[JScript]
function PreSend(
  userContext : CalloutUserContext,
  entityContext : CalloutEntityContext,
  errorMessage : String
) : PreCalloutReturnValue;

Parameters

userContext

Contains information about the user who is performing the send e-mail operation. See CalloutUserContext.

entityContext

Contains information about the e-mail entity being sent. See CalloutEntityContext.

errorMessage

[ref] A string that contains the error message to be returned to the application. The error message string should not exceed 1,500 characters in length.

Return Value

Returns a PreCalloutReturnValue type that specifies what action to take after this method completes.

Requirements

Namespace: Microsoft.Crm.Callout

Assembly: microsoft.crm.platform.callout.base.dll

See Also

© 2007 Microsoft Corporation. All rights reserved.