Compartilhar via


MessageQueuePermissionEntry.Label Propriedade

Definição

Obtém a descrição da fila.

public:
 property System::String ^ Label { System::String ^ get(); };
public string Label { get; }
member this.Label : string
Public ReadOnly Property Label As String

Valor da propriedade

O rótulo para a fila de mensagens.

Exemplos

O exemplo de código a seguir exibe o valor da propriedade de uma entrada de permissão de fila de Label mensagens.

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

// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ entry = gcnew MessageQueuePermissionEntry(
    MessageQueuePermissionAccess::Receive,
    queue->MachineName,
    queue->Label,
    queue->Category.ToString());

// Display the value of the entry's Label property.
Console::WriteLine("Label: {0}", entry->Label);

queue->Close();
// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");

// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry(
    MessageQueuePermissionAccess.Receive,
    queue.MachineName,
    queue.Label,
    queue.Category.ToString());

// Display the value of the entry's Label property.
Console.WriteLine("Label: {0}", entry.Label);

Aplica-se a