WebScriptEnablingElement Constructor

WebScriptEnablingElement Constructor

Initializes a new instance of the WebScriptEnablingElement class.

Namespace:  System.ServiceModel.Configuration
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)

public WebScriptEnablingElement()

The following sample returns the type 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.");

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

Community Additions

© 2016 Microsoft