本文整理匯總了VB.NET中System.Web.Security.PassportIdentity.GetDomainFromMemberName方法的典型用法代碼示例。如果您正苦於以下問題:VB.NET PassportIdentity.GetDomainFromMemberName方法的具體用法?VB.NET PassportIdentity.GetDomainFromMemberName怎麽用?VB.NET PassportIdentity.GetDomainFromMemberName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。
在下文中一共展示了PassportIdentity.GetDomainFromMemberName方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: GetDomainAttribute
' Declare new PassportIdendity object as variable newPass.
Dim newPass As System.Web.Security.PassportIdentity = New System.Web.Security.PassportIdentity()
' Get the URL for the Passport Information page using the
' GetDomainAttribute(attributeName, LocaleID, Domain) method.
' LocaleID 1033 = English-USA
' Create a string with the name of the Passport domain associated with the current UserName.
Dim sPassportDomain As String = newPass.GetDomainFromMemberName(newPass.Name)
Dim sInfoURL As String = newPass.GetDomainAttribute("PassportInformationCenter", 1033, sPassportDomain)