ServiceBusMessage Constructors
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.
Overloads
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. |
ServiceBusMessage()
- Source:
- ServiceBusMessage.cs
- Source:
- ServiceBusMessage.cs
Creates a new message.
public ServiceBusMessage ();
Public Sub New ()
Applies to
ServiceBusMessage(AmqpAnnotatedMessage)
- 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
ServiceBusMessage(ServiceBusReceivedMessage)
- 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
ServiceBusMessage(BinaryData)
- 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
ServiceBusMessage(ReadOnlyMemory<Byte>)
- 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
ServiceBusMessage(String)
- 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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應