WebScriptEnablingElement.BehaviorType Özellik

Tanım

Bu yapılandırma öğesi tarafından etkinleştirilen davranışın türünü alır.

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

Özellik Değeri

Type

TypeYapılandırma öğesiyle etkinleştirilen davranış için: WebScriptEnablingBehavior .

Örnekler

Aşağıdaki örnek, türü döndürür 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();  
        }  
    }  

Şunlara uygulanır