Compartir a través de


WebHttpElement.BehaviorType Propiedad

Definición

Obtiene el tipo del comportamiento habilitado por este elemento de configuración.

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

Valor de propiedad

Type para el comportamiento habilitado con el elemento de configuración: WebHttpBehavior.

Comentarios

Este ejemplo devuelve el tipo 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();  
        }  
    }  

Se aplica a