Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SendInsecureMessageToCustodians Method

HealthVault
Sends an insecure message to custodians of the specified health record.

Namespace: Microsoft.Health
Assembly: Microsoft.Health (in Microsoft.Health.dll) Version: 2.1.0.0 (1.15.1003.9505)
public:
static void SendInsecureMessageToCustodians(
	HealthServiceConnection^ connection, 
	Guid recordId, 
	bool addressMustBeValidated, 
	String^ subject, 
	String^ textBody, 
	String^ htmlBody
)

Parameters

connection
Type: Microsoft.Health..::..HealthServiceConnection
The connection to use for this operation. The connection must have application capabilities.
recordId
Type: System..::..Guid
The unique identifier of the health record for which the custodians should be sent the message.
addressMustBeValidated
Type: System..::..Boolean
true if HealthVault ensures that the person has validated their message address before sending the mail; false if the message will be sent even if the person's address has not been validated.
subject
Type: System..::..String
The subject of the message.
textBody
Type: System..::..String
The text body of the message.
htmlBody
Type: System..::..String
The HTML body of the message.
If both the textBody and htmlBody of the message is specified, then a multi-part message is sent so that the HTML body will be used and falls back to text if not supported by the client.
ExceptionCondition
System..::..ArgumentException The recordId parameter is Empty -or- The subject parameter is null or empty, -or- The textBody and htmlBody parameters are both null or empty.
Microsoft.Health..::..HealthServiceException The server returned a failure when making the request.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.