PassportAuthentication クラス
アセンブリ: System.Web (system.web.dll 内)


PassportAuthentication クラスを使用すると、passport タグで識別される Machine.config 構成ファイルまたは Web.config 構成ファイルのノードにアクセスして構成できます。
この型は、AuthenticationSection 型、FormsAuthenticationConfiguration 型、AuthenticationMode 型を含むグループの一部です。
![]() |
---|
PassportAuthentication クラスは、マシン レベル、サイト レベル、またはアプリケーション レベルのみで、構成ファイルの関連するセクションに情報を書き込むことができます。階層構造内の別のレベルで構成ファイルに書き込みを行おうとした場合、パーサーによってエラー メッセージが生成されます。このクラスを使用して、階層構造の任意のレベルの構成情報を読み取ることができます。 |

既存の Web アプリケーションの構成ファイルから PassportAuthentication オブジェクトを取得する方法を次のコード例に示します。構成の例も示します。
<authentication> <passport redirectUrl="Login.aspx"/> </authentication>
' Get the configuration. Dim configuration As System.Configuration.Configuration = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/aspnetTest") ' Get the authentication section. Dim authenticationSection As System.Web.Configuration.AuthenticationSection = CType(configuration.GetSection("system.web/authentication"), System.Web.Configuration.AuthenticationSection) ' Get the authentication passport element. Dim passport As PassportAuthentication = authenticationSection.Passport
// Get the configuration. // Get the Web application configuration. System.Configuration.Configuration configuration = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/aspnetTest"); // Get the section. System.Web.Configuration.AuthenticationSection authenticationSection = (System.Web.Configuration.AuthenticationSection)configuration.GetSection("system.web/authentication"); // Get the authentication passport element. PassportAuthentication passport = authenticationSection.Passport;

System.Configuration.ConfigurationElement
System.Web.Configuration.PassportAuthentication


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPassportAuthentication クラスを検索する場合は、下記のリンクをクリックしてください。

- PassportAuthentication クラスのページへのリンク