Sdílet prostřednictvím


WebScriptEnablingElement.BehaviorType Vlastnost

Definice

Získá typ chování povoleného tímto elementem konfigurace.

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

Hodnota vlastnosti

Chování Type povolené s elementem konfigurace: WebScriptEnablingBehavior.

Příklady

Následující ukázka vrátí typ WebScriptEnablingBehavior.

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();  
        }  
    }  

Platí pro