WebHttpElement.BehaviorType Eigenschap

Definitie

Hiermee haalt u het type gedrag op dat door dit configuratie-element is ingeschakeld.

public:
 virtual property Type ^ BehaviorType { Type ^ get(); };
public override Type BehaviorType { get; }
member this.BehaviorType : Type
Public Overrides ReadOnly Property BehaviorType As Type

Waarde van eigenschap

Het Type voor het gedrag dat is ingeschakeld met het configuratie-element: WebHttpBehavior.

Opmerkingen

Dit voorbeeld retourneert het type WebHttpElement.

using System;  
using System.ServiceModel;  
using System.ServiceModel.Web;  
using System.ServiceModel.Configuration;  

    class Program  
    {  
        static void Main(string[] args)  
        {  
            WebHttpElement webHttpElement = new WebHttpElement();  
            Console.WriteLine("The type is: {0}", webHttpElement.BehaviorType);  
            Console.WriteLine("Press <ENTER> to terminate the program.");  
            Console.ReadLine();  
        }  
    }  

Van toepassing op