共用方式為


WebScriptEnablingElement 建構函式

定義

初始化 WebScriptEnablingElement 類別的新執行個體。

public:
 WebScriptEnablingElement();
public WebScriptEnablingElement ();
Public Sub New ()

範例

下列範例會傳回型別 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();  
        }  
    }  

適用於