共用方式為


<passport> 項目

指定當網頁需要驗證而使用者尚未使用 Microsoft Passport 驗證簽入時重新導向的網頁。

<configuration>
   <system.web>
      <authentication>
         <passport>

<passport redirectUrl="redirectURL"/>

必要屬性

屬性 說明
redirectUrl 重新導向要求的 URL。

範例

下列範例指定重新導向要求至登入網頁。

<configuration>
   <system.web>
      <authentication>
         <passport redirectUrl="Login.aspx"/>
      </authentication>
   </system.web>
</configuration>

需求

包含於:<system.web>

**Web 平台:**IIS 5.0、IIS 5.1、IIS 6.0

**組態檔:**Machine.config, Web.config

**組態區段處理常式:**System.Web.Configuration.AuthenticationConfigHandler

請參閱

<authentication> 項目 | ASP.NET 組態 | ASP.NET 設定結構描述