다음을 통해 공유


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();  
        }  
    }  

적용 대상