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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기