@@ -89,9 +89,6 @@ public static void Main()
89
89
// Demonstrate GetAllMessages.
90
90
example . GetAllMessages ( ) ;
91
91
92
- // Demonstrate GetEnumerator.
93
- example . GetEnumerator ( ) ;
94
-
95
92
// Demonstrate SetPermissions.
96
93
example . SetPermissions_StringAccessrights ( ) ;
97
94
@@ -113,7 +110,7 @@ public static void Main()
113
110
// Demonstrate Purge.
114
111
example . Purge ( ) ;
115
112
}
116
- catch ( System . Exception e )
113
+ catch ( Exception e )
117
114
{
118
115
// Write the exception information to the console.
119
116
Console . WriteLine ( e ) ;
@@ -123,7 +120,7 @@ public static void Main()
123
120
// Creates a new queue.
124
121
public static void CreateQueue ( string queuePath , bool transactional )
125
122
{
126
- if ( ! MessageQueue . Exists ( queuePath ) )
123
+ if ( ! MessageQueue . Exists ( queuePath ) )
127
124
{
128
125
MessageQueue . Create ( queuePath , transactional ) ;
129
126
}
@@ -206,7 +203,7 @@ public void Send_ObjectStringTransaction()
206
203
// Commit the transaction.
207
204
transaction . Commit ( ) ;
208
205
}
209
- catch ( System . Exception e )
206
+ catch ( System . Exception e )
210
207
{
211
208
// Cancel the transaction.
212
209
transaction . Abort ( ) ;
@@ -569,7 +566,7 @@ public void ReceiveByCorrelationId_StringTimespanTransaction()
569
566
// Commit the transaction.
570
567
transaction . Commit ( ) ;
571
568
}
572
- catch ( System . Exception e )
569
+ catch ( System . Exception e )
573
570
{
574
571
// Cancel the transaction.
575
572
transaction . Abort ( ) ;
@@ -645,7 +642,7 @@ public void ReceiveByCorrelationId_StringTransaction()
645
642
// Commit the transaction.
646
643
transaction . Commit ( ) ;
647
644
}
648
- catch ( System . Exception e )
645
+ catch ( System . Exception e )
649
646
{
650
647
// Cancel the transaction.
651
648
transaction . Abort ( ) ;
@@ -752,7 +749,7 @@ public void ReceiveById_StringTransaction()
752
749
// Commit the transaction.
753
750
transaction . Commit ( ) ;
754
751
}
755
- catch ( System . Exception e )
752
+ catch ( System . Exception e )
756
753
{
757
754
// Cancel the transaction.
758
755
transaction . Abort ( ) ;
@@ -801,7 +798,7 @@ public void ReceiveById_StringTimespanTransaction()
801
798
// Commit the transaction.
802
799
transaction . Commit ( ) ;
803
800
}
804
- catch ( System . Exception e )
801
+ catch ( System . Exception e )
805
802
{
806
803
// Cancel the transaction.
807
804
transaction . Abort ( ) ;
@@ -875,7 +872,7 @@ public void GetAllMessages()
875
872
Message [ ] msgs = queue . GetAllMessages ( ) ;
876
873
877
874
// Loop through the messages.
878
- foreach ( Message msg in msgs )
875
+ foreach ( Message msg in msgs )
879
876
{
880
877
// Display the label of each message.
881
878
Console . WriteLine ( msg . Label ) ;
0 commit comments