CompressedBrokeredMessages.CreateMessageFromStream Method (Stream, Boolean)

 

Applies To: Dynamics Marketing

Creates a brokered message based on a compressed stream.

Namespace:   Microsoft.Dynamics.Marketing.SDK.Common
Assembly:  Microsoft.Dynamics.Marketing.SDK (in Microsoft.Dynamics.Marketing.SDK.dll)

Syntax

public static BrokeredMessage CreateMessageFromStream(
    Stream bodyStream,
    bool ownsStream = false
)
public:
static BrokeredMessage^ CreateMessageFromStream(
    Stream^ bodyStream,
    bool ownsStream = false
)
static member CreateMessageFromStream : 
        bodyStream:Stream *
        ownsStream:bool = false -> BrokeredMessage
Public Shared Function CreateMessageFromStream (
    bodyStream As Stream,
    ownsStream As Boolean
) As BrokeredMessage

Parameters

  • ownsStream
    Type: System.Boolean

    true if the stream will be closed when the message is closed; otherwise, false.

Return Value

Type: Microsoft.ServiceBus.Messaging.BrokeredMessage

Type: Int16

See Also

CompressedBrokeredMessages Class
Microsoft.Dynamics.Marketing.SDK.Common Namespace

Return to top