WebScriptEnablingElement.BehaviorType Properti

Definisi

Mendapatkan jenis perilaku yang diaktifkan oleh elemen konfigurasi ini.

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

Nilai Properti

Type untuk perilaku yang diaktifkan dengan elemen konfigurasi: WebScriptEnablingBehavior.

Contoh

Sampel berikut mengembalikan jenis 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();  
        }  
    }  

Berlaku untuk