AuthenticationSection.Passport 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This property is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.
获取 Passport 元素属性。
public:
property System::Web::Configuration::PassportAuthentication ^ Passport { System::Web::Configuration::PassportAuthentication ^ get(); };
[System.Configuration.ConfigurationProperty("passport")]
public System.Web.Configuration.PassportAuthentication Passport { get; }
[System.Configuration.ConfigurationProperty("passport")]
[System.Obsolete("This property is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")]
public System.Web.Configuration.PassportAuthentication Passport { get; }
[<System.Configuration.ConfigurationProperty("passport")>]
member this.Passport : System.Web.Configuration.PassportAuthentication
[<System.Configuration.ConfigurationProperty("passport")>]
[<System.Obsolete("This property is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")>]
member this.Passport : System.Web.Configuration.PassportAuthentication
Public ReadOnly Property Passport As PassportAuthentication
属性值
包含在基于密码的身份验证过程中所使用的信息的 Passport 元素属性。
- 属性
示例
下面的代码示例演示如何使用 Passport 元素属性。
// Get the current Passport property.
PassportAuthentication currentPassport =
authenticationSection.Passport;
// Get the Passport redirect URL.
string passRedirectUrl =
currentPassport.RedirectUrl;
' Get the current Passport property.
Dim currentPassport _
As PassportAuthentication = _
authenticationSection.Passport
' Get the Passport redirect URL.
Dim passRedirectUrl As String = _
currentPassport.RedirectUrl