WebHttpElement 构造函数

定义

初始化 WebHttpElement 类的新实例。

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

注解

此示例返回类型 WebHttpElement

using System;  
using System.ServiceModel;  
using System.ServiceModel.Web;  
using System.ServiceModel.Configuration;  

    class Program  
    {  
        static void Main(string[] args)  
        {  
            WebHttpElement webHttpElement = new WebHttpElement();  
            Console.WriteLine("The type is: {0}", webHttpElement.BehaviorType);  
            Console.WriteLine("Press <ENTER> to terminate the program.");  
            Console.ReadLine();  
        }  
    }  

适用于