WebHttpBinding コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
WebHttpBinding クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| WebHttpBinding() |
WebHttpBinding クラスの新しいインスタンスを初期化します。 |
| WebHttpBinding(WebHttpSecurityMode) |
バインディングによって明示的に指定されたセキュリティの種類を使用して、 WebHttpBinding クラスの新しいインスタンスを初期化します。 |
| WebHttpBinding(String) |
構成名で指定されたバインディングを使用して、 WebHttpBinding クラスの新しいインスタンスを初期化します。 |
WebHttpBinding()
WebHttpBinding クラスの新しいインスタンスを初期化します。
public:
WebHttpBinding();
public WebHttpBinding();
Public Sub New ()
注釈
既定のセキュリティ モードは Noneであり、セキュリティが使用されていないことを指定します。
このバインディングで構成されたエンドポイントにトランスポート レベルのセキュリティを使用するには、Transport コンストラクターでパラメーターとしてWebHttpBinding(WebHttpSecurityMode)値を指定する必要があります。
HTTPS を使用せずに HTTP 認証を使用するには、 TransportCredentialOnly 値を WebHttpBinding(WebHttpSecurityMode) コンストラクターのパラメーターとして指定する必要があります。
バインド インスタンスの作成後、 WebHttpSecurityMode の値を再度設定することはできません。
適用対象
WebHttpBinding(WebHttpSecurityMode)
バインディングによって明示的に指定されたセキュリティの種類を使用して、 WebHttpBinding クラスの新しいインスタンスを初期化します。
public:
WebHttpBinding(System::ServiceModel::WebHttpSecurityMode securityMode);
public WebHttpBinding(System.ServiceModel.WebHttpSecurityMode securityMode);
new System.ServiceModel.WebHttpBinding : System.ServiceModel.WebHttpSecurityMode -> System.ServiceModel.WebHttpBinding
Public Sub New (securityMode As WebHttpSecurityMode)
パラメーター
- securityMode
- WebHttpSecurityMode
HTTP 要求を受信するようにサービス エンドポイントを構成するために使用されるセキュリティの種類を指定する WebHttpSecurityMode の値。
例外
指定された securityMode が有効な WebHttpSecurityModeではありません。
注釈
このバインディングで構成されたエンドポイントにトランスポート レベルのセキュリティを使用するには、Transport コンストラクターでパラメーターとしてWebHttpBinding(WebHttpSecurityMode)値を指定する必要があります。
HTTPS を使用せずに HTTP 認証を使用するには、 TransportCredentialOnly 値を WebHttpBinding(WebHttpSecurityMode) コンストラクターのパラメーターとして指定する必要があります。
バインド インスタンスの作成後、 WebHttpSecurityMode の値を再度設定することはできません。
適用対象
WebHttpBinding(String)
構成名で指定されたバインディングを使用して、 WebHttpBinding クラスの新しいインスタンスを初期化します。
public:
WebHttpBinding(System::String ^ configurationName);
public WebHttpBinding(string configurationName);
new System.ServiceModel.WebHttpBinding : string -> System.ServiceModel.WebHttpBinding
Public Sub New (configurationName As String)
パラメーター
- configurationName
- String
WebHttpBindingElementのバインド構成名。
例外
configurationNameという名前のバインド要素が見つかりませんでした。