ApplicationQueuingAttribute.QueueListenerEnabled Özellik

Tanım

Uygulamanın istemcilerden gelen kuyruğa alınan bileşen çağrılarını kabul edip etmeyeceğini belirten bir değer alır veya ayarlar.

C#
public bool QueueListenerEnabled { get; set; }

Özellik Değeri

true uygulama kuyruğa alınan bileşen çağrılarını kabul ederse; aksi takdirde , false. Varsayılan değer: false.

Örnekler

Aşağıdaki kod örneği, özniteliğin ApplicationQueuingQueueListenerEnabled özelliğinin değerini alır ve ayarlar.

C#
// This example code requires that an ApplicationQueuing attribute be
// applied to the assembly, as shown below:
// [assembly: ApplicationQueuing]

// Get the ApplicationQueuingAttribute applied to the assembly.
ApplicationQueuingAttribute attribute =
    (ApplicationQueuingAttribute)Attribute.GetCustomAttribute(
    System.Reflection.Assembly.GetExecutingAssembly(),
    typeof(ApplicationQueuingAttribute),
    false);

// Display the current value of the attribute's QueueListenerEnabled
// property.
Console.WriteLine(
    "ApplicationQueuingAttribute.QueueListenerEnabled: {0}",
    attribute.Enabled);

// Set the QueueListenerEnabled property value of the attribute.
attribute.QueueListenerEnabled = false;

// Display the new value of the attribute's QueueListenerEnabled
// property.
Console.WriteLine(
    "ApplicationQueuingAttribute.QueueListenerEnabled: {0}",
    attribute.QueueListenerEnabled);

Şunlara uygulanır

Ürün Sürümler
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1