Class MessagingEntityAlreadyExistsException
- Namespace
- Microsoft.ServiceBus.Messaging
- Assembly
- Microsoft.ServiceBus.dll
Represents the exception that is thrown for signaling messaging entity already exists errors.
public sealed class MessagingEntityAlreadyExistsException : MessagingException, ISerializable
- Inheritance
-
MessagingEntityAlreadyExistsException
- Implements
- Inherited Members
Constructors
MessagingEntityAlreadyExistsException(string)
Initializes a new instance of the MessagingEntityAlreadyExistsException class with the name of the entity.
public MessagingEntityAlreadyExistsException(string entityName)
Parameters
entityName
stringThe name of the entity.
MessagingEntityAlreadyExistsException(string, TrackingContext)
Initializes a new instance of the MessagingEntityAlreadyExistsException class.
public MessagingEntityAlreadyExistsException(string entityName, TrackingContext trackingContext)
Parameters
entityName
stringThe name of the entity.
trackingContext
TrackingContextThe context information associated by a transaction tracking the operation.
MessagingEntityAlreadyExistsException(string, TrackingContext, Exception)
Initializes a new instance of the MessagingEntityAlreadyExistsException class.
public MessagingEntityAlreadyExistsException(string message, TrackingContext trackingContext, Exception innerException)
Parameters
message
stringThe error message that explains the reason for the exception.
trackingContext
TrackingContextThe context information associated by a transaction tracking the operation.
innerException
ExceptionThe inner exception that is the cause of the current exception.
Methods
GetObjectData(SerializationInfo, StreamingContext)
Populates the serialization information with data about the exception.
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe serialized object data about the exception being thrown.
context
StreamingContextThe contextual information about the source or destinations.