PassportAuthentication クラス

定義

注意事項

This type is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.

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

public ref class PassportAuthentication sealed : System::Configuration::ConfigurationElement
public sealed class PassportAuthentication : System.Configuration.ConfigurationElement
[System.Obsolete("This type is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")]
public sealed class PassportAuthentication : System.Configuration.ConfigurationElement
type PassportAuthentication = class
    inherit ConfigurationElement
[<System.Obsolete("This type is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")>]
type PassportAuthentication = class
    inherit ConfigurationElement
Public NotInheritable Class PassportAuthentication
Inherits ConfigurationElement
継承
PassportAuthentication
属性

次のコード例は、既存の Web アプリケーションの PassportAuthentication 構成ファイルから オブジェクトを取得する方法を示しています。 構成例も示します。

<authentication>
  <passport redirectUrl="Login.aspx"/>
</authentication>

// 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;
' 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

注釈

PassportAuthenticationクラスを使用すると、タグによって識別されるMachine.configまたはWeb.config構成ファイル内のノードにpassportアクセスして構成できます。

この型は、、FormsAuthenticationConfiguration、および AuthenticationMode 型を含むグループのAuthenticationSection一部です。

注意

クラスは PassportAuthentication 、コンピューター、サイト、またはアプリケーション レベルでのみ、構成ファイルの関連セクションに情報を書き込むことができます。 階層内の別のレベルで構成ファイルに書き込もうとすると、パーサーによってエラー メッセージが生成されます。 このクラスを使用すると、階層内の任意のレベルで構成情報を読み取ることができます。

コンストラクター

PassportAuthentication()
古い.

PassportAuthentication クラスの新しいインスタンスを初期化します。

プロパティ

CurrentConfiguration
古い.

現在の Configuration インスタンスが属している構成階層を表す最上位の ConfigurationElement インスタンスへの参照を取得します。

(継承元 ConfigurationElement)
ElementInformation
古い.

ElementInformation オブジェクトのカスタマイズできない情報と機能を格納する ConfigurationElement オブジェクトを取得します。

(継承元 ConfigurationElement)
ElementProperty
古い.

ConfigurationElementProperty オブジェクト自体を表す ConfigurationElement オブジェクトを取得します。

(継承元 ConfigurationElement)
EvaluationContext
古い.

ContextInformation オブジェクトの ConfigurationElement オブジェクトを取得します。

(継承元 ConfigurationElement)
HasContext
古い.

CurrentConfiguration プロパティが null であるかどうかを示す値を取得します。

(継承元 ConfigurationElement)
Item[ConfigurationProperty]
古い.

この構成要素のプロパティまたは属性を取得または設定します。

(継承元 ConfigurationElement)
Item[String]
古い.

この構成要素のプロパティ、属性、または子要素を取得または設定します。

(継承元 ConfigurationElement)
LockAllAttributesExcept
古い.

ロックされている属性のコレクションを取得します。

(継承元 ConfigurationElement)
LockAllElementsExcept
古い.

ロックされている要素のコレクションを取得します。

(継承元 ConfigurationElement)
LockAttributes
古い.

ロックされている属性のコレクションを取得します。

(継承元 ConfigurationElement)
LockElements
古い.

ロックされている要素のコレクションを取得します。

(継承元 ConfigurationElement)
LockItem
古い.

要素がロックされているかどうかを示す値を取得または設定します。

(継承元 ConfigurationElement)
Properties
古い.

プロパティのコレクションを取得します。

(継承元 ConfigurationElement)
RedirectUrl
古い.

要求のリダイレクト先の URL を取得または設定します。

メソッド

DeserializeElement(XmlReader, Boolean)
古い.

構成ファイルから XML を読み取ります。

(継承元 ConfigurationElement)
Equals(Object)
古い.

現在の ConfigurationElement インスタンスを、指定したオブジェクトと比較します。

(継承元 ConfigurationElement)
GetHashCode()
古い.

現在の ConfigurationElement インスタンスを表す一意の値を取得します。

(継承元 ConfigurationElement)
GetTransformedAssemblyString(String)
古い.

指定されたアセンブリ名を変換して返します。

(継承元 ConfigurationElement)
GetTransformedTypeString(String)
古い.

指定された型名を変換して返します。

(継承元 ConfigurationElement)
GetType()
古い.

現在のインスタンスの Type を取得します。

(継承元 Object)
Init()
古い.

ConfigurationElement オブジェクトを初期状態に設定します。

(継承元 ConfigurationElement)
InitializeDefault()
古い.

ConfigurationElement オブジェクトの既定の値セットを初期化するために使用します。

(継承元 ConfigurationElement)
IsModified()
古い.

派生クラスに実装された場合、この構成要素が最後の保存または読み込み以降に変更されたかどうかを示します。

(継承元 ConfigurationElement)
IsReadOnly()
古い.

ConfigurationElement オブジェクトが読み取り専用かどうかを示す値を取得します。

(継承元 ConfigurationElement)
ListErrors(IList)
古い.

この ConfigurationElement オブジェクトおよびすべてのサブ要素の無効なプロパティのエラーを、渡されたリストに追加します。

(継承元 ConfigurationElement)
MemberwiseClone()
古い.

現在の Object の簡易コピーを作成します。

(継承元 Object)
OnDeserializeUnrecognizedAttribute(String, String)
古い.

逆シリカル化中に不明な属性が発生したかどうかを示す値を取得します。

(継承元 ConfigurationElement)
OnDeserializeUnrecognizedElement(String, XmlReader)
古い.

逆シリカル化中に不明な要素が発生したかどうかを示す値を取得します。

(継承元 ConfigurationElement)
OnRequiredPropertyNotFound(String)
古い.

必要なプロパティが見つからないと例外がスローされます。

(継承元 ConfigurationElement)
PostDeserialize()
古い.

逆シリアル化後に呼び出されます。

(継承元 ConfigurationElement)
PreSerialize(XmlWriter)
古い.

シリアル化前に呼び出されます。

(継承元 ConfigurationElement)
Reset(ConfigurationElement)
古い.

ConfigurationElement オブジェクトの内部状態 (ロックやプロパティ コレクションなど) をリセットします。

(継承元 ConfigurationElement)
ResetModified()
古い.

IsModified() メソッドの値が派生クラスに実装されたときに、false にリセットします。

(継承元 ConfigurationElement)
SerializeElement(XmlWriter, Boolean)
古い.

派生クラスに実装されている場合、この構成要素の内容を構成ファイルに書き込みます。

(継承元 ConfigurationElement)
SerializeToXmlElement(XmlWriter, String)
古い.

派生クラスに実装されている場合、この構成要素の外側のタグを構成ファイルに書き込みます。

(継承元 ConfigurationElement)
SetPropertyValue(ConfigurationProperty, Object, Boolean)
古い.

プロパティを指定した値に設定します。

(継承元 ConfigurationElement)
SetReadOnly()
古い.

IsReadOnly() オブジェクトおよびすべてのサブ要素に ConfigurationElement プロパティを設定します。

(継承元 ConfigurationElement)
ToString()
古い.

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)
古い.

保存しないすべての値を削除するには、ConfigurationElement オブジェクトを変更します。

(継承元 ConfigurationElement)

適用対象

こちらもご覧ください