ContractDescription.Behaviors Propriété

Définition

Obtient les comportements associés à la description du contrat.

C#
public System.Collections.Generic.KeyedByTypeCollection<System.ServiceModel.Description.IContractBehavior> Behaviors { get; }

Valeur de propriété

KeyedByTypeCollection<IContractBehavior>

KeyedByTypeCollection<TItem> de type IContractBehavior associée à la description du contrat.

Exemples

C#
KeyedByTypeCollection<IContractBehavior> behaviors = cd.Behaviors;
Console.WriteLine("\tDisplay all behaviors:");
foreach (IContractBehavior behavior in behaviors)
{
    Console.WriteLine("\t\t" + behavior.ToString());
}

S’applique à

Produit Versions
.NET Framework 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