The distributor uses this method to pass formatted notification data to the delivery protocol, which then uses this information to create an appropriately formatted body for the HTTP message that will be sent. This body is referred to as an envelope, because it wraps the notification text returned by the content formatter.
네임스페이스: Microsoft.SqlServer.NotificationServices
어셈블리: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
구문
‘선언
Function FormatEnvelope ( _
protocolFields As StringDictionary, _
requestBody As String _
) As String
string FormatEnvelope (
StringDictionary protocolFields,
string requestBody
)
String^ FormatEnvelope (
StringDictionary^ protocolFields,
String^ requestBody
)
String FormatEnvelope (
StringDictionary protocolFields,
String requestBody
)
function FormatEnvelope (
protocolFields : StringDictionary,
requestBody : String
) : String
매개 변수
- protocolFields
A StringDictionary containing the protocol fields for the notifications to be delivered, as specified in the application definition.
- requestBody
A string containing the formatted notification data that was produced by the content formatter. This becomes the body of the HTTP request.
반환 값
A string containing the formatted envelope.
주의
This method needs to return a string that the internal HTTPExtension class can send as the body of the HTTP message.
You can use any appropriate mechanism to evaluate the values in the arguments and create string. No send functionality needs to be coded here; this is handled by the Notification Services internal HttpExtension class.
예
For an example of how to implement the FormatEnvelope method, see the IHttpProtocolProvider topic.
스레드 보안
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
IHttpProtocolProvider Interface
IHttpProtocolProvider Members
Microsoft.SqlServer.NotificationServices Namespace