System.Messaging Reference (Document! X Sample)



System.Messaging Namespace > MessageQueue Class : MaximumJournalSize Property
MaximumJournalSize Property (MessageQueue)
Gets or sets the maximum size of the journal queue.
Syntax
'Declaration
 
<MessagingDescriptionAttribute("Specifies the maximum size (in kilobytes) of the journal queue. Use "Infinity" to set the maximum value.")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<TypeConverterAttribute("System.Messaging.Design.SizeConverter, System.Messaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
Public Property MaximumJournalSize As Long
'Usage
 
Dim instance As MessageQueue
Dim value As Long
 
instance.MaximumJournalSize = value
 
value = instance.MaximumJournalSize
[MessagingDescription("Specifies the maximum size (in kilobytes) of the journal queue. Use "Infinity" to set the maximum value.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[TypeConverter("System.Messaging.Design.SizeConverter, System.Messaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public long MaximumJournalSize {get; set;}
[MessagingDescription("Specifies the maximum size (in kilobytes) of the journal queue. Use "Infinity" to set the maximum value.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[TypeConverter("System.Messaging.Design.SizeConverter, System.Messaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public:
property int64 MaximumJournalSize {
   int64 get();
   void set (    int64 value);
}

Property Value

The maximum size, in kilobytes, of the journal queue. The Message Queuing default specifies that no limit exists.
Exceptions
ExceptionDescription
The maximum journal queue size was set to an invalid value.
An error occurred when accessing a Message Queuing method.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also