Share via


WebHttpElement.BehaviorType プロパティ

定義

この構成要素で有効にできる動作の種類を取得します。

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

プロパティ値

構成要素 Type で有効にできる動作の WebHttpBehavior

注釈

この例では、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();  
        }  
    }  

適用対象