Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

66 changes: 0 additions & 66 deletions snippets/cpp/VS_Snippets_CLR/ADShadowCopy/CPP/adshadowcopy.cpp

This file was deleted.

67 changes: 0 additions & 67 deletions snippets/cpp/VS_Snippets_CLR/adproperties/CPP/adproperties.cpp

This file was deleted.

50 changes: 12 additions & 38 deletions snippets/cpp/VS_Snippets_Remoting/MessageQueue2/cpp/class1.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#using <System.dll>
#using <System.Messaging.dll>

Expand All @@ -10,7 +10,7 @@
if (!MessageQueue::Exists(queuePath))
{
MessageQueue^ queue = MessageQueue::Create(queuePath, transactional);
queue->Close();
queue->Close();
}
else
{
Expand Down Expand Up @@ -127,7 +127,7 @@

// Designate a queue to receive the acknowledgement message for this
// message.
msg->AdministrationQueue =
msg->AdministrationQueue =
gcnew MessageQueue(".\\exampleAdminQueue");

// Set the message to generate an acknowledgement message upon its
Expand All @@ -144,7 +144,7 @@
msg = queue->ReceiveById(id, TimeSpan::FromSeconds(10.0));

// Connect to the admin queue.
MessageQueue^ adminQueue =
MessageQueue^ adminQueue =
gcnew MessageQueue(".\\exampleAdminQueue");

// Set the admin queue's MessageReadPropertyFilter property to ensure
Expand Down Expand Up @@ -287,7 +287,7 @@

// Designate a queue to receive the acknowledgement message for this
// message.
msg->AdministrationQueue =
msg->AdministrationQueue =
gcnew MessageQueue(".\\exampleAdminQueue");

// Set the message to generate an acknowledgement message upon its
Expand All @@ -304,7 +304,7 @@
msg = queue->ReceiveById(id, TimeSpan::FromSeconds(10.0));

// Connect to the admin queue.
MessageQueue^ adminQueue =
MessageQueue^ adminQueue =
gcnew MessageQueue(".\\exampleAdminQueue");

// Set the admin queue's MessageReadPropertyFilter property to ensure
Expand Down Expand Up @@ -348,7 +348,7 @@
msg = queue->ReceiveById(id, TimeSpan::FromSeconds(10.0));

// Connect to a transactional queue on the local computer.
MessageQueue^ transQueue =
MessageQueue^ transQueue =
gcnew MessageQueue(".\\exampleTransQueue");

// Create a new message in response to the original message.
Expand Down Expand Up @@ -404,7 +404,7 @@
msg = queue->ReceiveById(id, TimeSpan::FromSeconds(10.0));

// Connect to a transactional queue on the local computer.
MessageQueue^ transQueue =
MessageQueue^ transQueue =
gcnew MessageQueue(".\\exampleTransQueue");

// Create a new message in response to the original message.
Expand Down Expand Up @@ -457,7 +457,7 @@
msg = queue->ReceiveById(id, TimeSpan::FromSeconds(10.0));

// Connect to a transactional queue on the local computer.
MessageQueue^ transQueue =
MessageQueue^ transQueue =
gcnew MessageQueue(".\\exampleTransQueue");

// Create a new message in response to the original message.
Expand Down Expand Up @@ -510,7 +510,7 @@
Console::WriteLine("Message.Label: {0}", responseMsg->Label);
Console::WriteLine("Message.CorrelationId: {0}",
responseMsg->CorrelationId);

// </snippet13>
}

Expand All @@ -534,7 +534,7 @@
msg = queue->ReceiveById(id, TimeSpan::FromSeconds(10.0));

// Connect to a transactional queue on the local computer.
MessageQueue^ transQueue =
MessageQueue^ transQueue =
gcnew MessageQueue(".\\exampleTransQueue");

// Create a new message in response to the original message.
Expand Down Expand Up @@ -582,7 +582,7 @@
// Dispose of the transaction object.
delete transaction;
transQueue->Close();
queue->Close();
queue->Close();
}

// Display the response message's property values.
Expand Down Expand Up @@ -822,32 +822,6 @@
// </snippet21>
}

void GetEnumerator()
{
// <snippet22>

// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");

// Get an IEnumerator object.
System::Collections::IEnumerator^ enumerator =
queue->GetMessageEnumerator2();

// Use the IEnumerator object to loop through the messages.
while(enumerator->MoveNext())
{
// Get a message from the enumerator.
Message^ msg = (Message^)enumerator->Current;

// Display the label of the message.
Console::WriteLine(msg->Label);
}

queue->Close();

// </snippet22>
}

void SetPermissionsStringAccessRights()
{
// <snippet23>
Expand Down Expand Up @@ -1098,4 +1072,4 @@
// Write the exception information to the console.
Console::WriteLine(ex->Message);
}
}
}

This file was deleted.

Loading