ServiceBusMessage Constructors
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.
ServiceBusMessage() |
Creates a new message. |
ServiceBusMessage(AmqpAnnotatedMessage) |
Creates a new message from the specified AmqpAnnotatedMessage instance. |
ServiceBusMessage(ServiceBusReceivedMessage) |
Creates a new message from the specified received message by copying the properties. |
ServiceBusMessage(BinaryData) |
Creates a new message from the specified BinaryData instance. |
ServiceBusMessage(ReadOnlyMemory<Byte>) |
Creates a new message from the specified payload. |
ServiceBusMessage(String) |
Creates a new message from the specified string, using UTF-8 encoding. |
- Source:
- ServiceBusMessage.cs
- Source:
- ServiceBusMessage.cs
Creates a new message.
public ServiceBusMessage ();
Public Sub New ()
Applies to
- Source:
- ServiceBusMessage.cs
- Source:
- ServiceBusMessage.cs
Creates a new message from the specified AmqpAnnotatedMessage instance.
public ServiceBusMessage (Azure.Core.Amqp.AmqpAnnotatedMessage message);
new Azure.Messaging.ServiceBus.ServiceBusMessage : Azure.Core.Amqp.AmqpAnnotatedMessage -> Azure.Messaging.ServiceBus.ServiceBusMessage
Public Sub New (message As AmqpAnnotatedMessage)
Parameters
- message
- AmqpAnnotatedMessage
The AMQP message.
Applies to
- Source:
- ServiceBusMessage.cs
- Source:
- ServiceBusMessage.cs
Creates a new message from the specified received message by copying the properties.
public ServiceBusMessage (Azure.Messaging.ServiceBus.ServiceBusReceivedMessage receivedMessage);
new Azure.Messaging.ServiceBus.ServiceBusMessage : Azure.Messaging.ServiceBus.ServiceBusReceivedMessage -> Azure.Messaging.ServiceBus.ServiceBusMessage
Public Sub New (receivedMessage As ServiceBusReceivedMessage)
Parameters
- receivedMessage
- ServiceBusReceivedMessage
The received message to copy the data from.
Applies to
- Source:
- ServiceBusMessage.cs
- Source:
- ServiceBusMessage.cs
Creates a new message from the specified BinaryData instance.
public ServiceBusMessage (BinaryData body);
new Azure.Messaging.ServiceBus.ServiceBusMessage : BinaryData -> Azure.Messaging.ServiceBus.ServiceBusMessage
Public Sub New (body As BinaryData)
Parameters
- body
- BinaryData
The payload of the message.
Applies to
- Source:
- ServiceBusMessage.cs
- Source:
- ServiceBusMessage.cs
Creates a new message from the specified payload.
public ServiceBusMessage (ReadOnlyMemory<byte> body);
new Azure.Messaging.ServiceBus.ServiceBusMessage : ReadOnlyMemory<byte> -> Azure.Messaging.ServiceBus.ServiceBusMessage
Public Sub New (body As ReadOnlyMemory(Of Byte))
Parameters
- body
- ReadOnlyMemory<Byte>
The payload of the message in bytes.
Applies to
- Source:
- ServiceBusMessage.cs
- Source:
- ServiceBusMessage.cs
Creates a new message from the specified string, using UTF-8 encoding.
public ServiceBusMessage (string body);
new Azure.Messaging.ServiceBus.ServiceBusMessage : string -> Azure.Messaging.ServiceBus.ServiceBusMessage
Public Sub New (body As String)
Parameters
- body
- String
The payload of the message as a string.
Applies to
Feedback su Azure SDK for .NET
Azure SDK for .NET è un progetto di open source. Selezionare un collegamento per fornire feedback: