DocumentBase.SendForReview(Object, Object, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends the document in an e-mail message for review by the specified recipients.
public void SendForReview (ref object recipients, ref object subject, ref object showMessage, ref object includeAttachment);
member this.SendForReview : obj * obj * obj * obj -> unit
Public Sub SendForReview (Optional ByRef recipients As Object, Optional ByRef subject As Object, Optional ByRef showMessage As Object, Optional ByRef includeAttachment As Object)
Parameters
- recipients
- Object
The people to whom to send the message. These can be unresolved names and aliases in an e-mail phone book or full e-mail addresses. Separate multiple recipients with a semicolon (;). If left blank and ShowMessage
is false
, an exception is thrown and the message is not sent.
- subject
- Object
The subject of the message. If left blank, the subject will be: Please review "filename
".
- showMessage
- Object
true
to display the message before sending; otherwise, false
. The default is true
. If set to false
, the message is automatically sent to the recipients without first showing the message to the sender.
- includeAttachment
- Object
true
to include the document as an attachment; false
to send a link to the document at a server location. If set to false
, the document must be stored at a shared location.
Examples
The following code example uses the SendForReview method to send the document to a full e-mail address as an attachment. To use this example, run it from the ThisDocument
class in a document-level project.
private void DocumentSendForReview()
{
object recipients = "someone@example.com";
object subject = "Please Review this document.";
object showMessage = false;
object includeAttachment = true;
this.SendForReview(ref recipients, ref subject, ref showMessage,
ref includeAttachment);
}
Private Sub DocumentSendForReview()
Me.SendForReview("someone@example.com", _
"Please Review this document.", False, True)
End Sub
Remarks
This method starts a collaborative review cycle. Use the EndReview method to end a review cycle.
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.