WebScriptEnablingElement.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: WebScriptEnablingBehavior.

Voorbeelden

In het volgende voorbeeld wordt het type WebScriptEnablingBehaviorgeretourneerd.

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

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

Van toepassing op