PassportAuthentication クラスとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PassportAuthentication クラスの意味・解説 

PassportAuthentication クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

ASP.NET アプリケーションPassport ベース認証構成します

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public NotInheritable Class
 PassportAuthentication
    Inherits ConfigurationElement
Dim instance As PassportAuthentication
public sealed class PassportAuthentication
 : ConfigurationElement
public ref class PassportAuthentication sealed
 : public ConfigurationElement
public final class PassportAuthentication extends
 ConfigurationElement
public final class PassportAuthentication extends
 ConfigurationElement
解説解説

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.Object
   System.Configuration.ConfigurationElement
    System.Web.Configuration.PassportAuthentication
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からPassportAuthentication クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からPassportAuthentication クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPassportAuthentication クラス を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「PassportAuthentication クラス」の関連用語

PassportAuthentication クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



PassportAuthentication クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS