WinHttpHandler.AutomaticRedirection プロパティ

定義

ハンドラーが HTTP リダイレクト応答に従うかどうかを示す値を取得または設定します。

public:
 property bool AutomaticRedirection { bool get(); void set(bool value); };
public bool AutomaticRedirection { get; set; }
member this.AutomaticRedirection : bool with get, set
Public Property AutomaticRedirection As Boolean

プロパティ値

true HTTP リダイレクト応答に従う場合は 。それ以外の場合は false。 既定値は、true です。

注釈

このプロパティが に true設定されている場合、サーバーからの HTTP リダイレクト応答はすべて、HTTPS エンドポイントから HTTP エンドポイントにリダイレクトされる場合を除き、自動的に実行されます。

適用対象