Returns a ChosenPortalAlias object where the portalId, culture code and isMobile matches
Namespace: DotNetNuke.Entities.PortalsAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static PortalAliasInfo GetAliasByPortalIdAndSettings( this IEnumerable<PortalAliasInfo> aliases, int portalId, UrlAction result, string cultureCode, BrowserTypes browserType ) |
Visual Basic |
---|
<ExtensionAttribute> Public Shared Function GetAliasByPortalIdAndSettings ( aliases As IEnumerable(Of PortalAliasInfo), portalId As Integer, result As UrlAction, cultureCode As String, browserType As BrowserTypes ) As PortalAliasInfo |
Parameters
- aliases
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'PortalAliasInfo>)>)>
paramaliasesM:DotNetNuke.Entities.Portals.PortalAliasExtensions.GetAliasByPortalIdAndSettings(System.Collections.Generic.IEnumerable{DotNetNuke.Entities.Portals.PortalAliasInfo},System.Int32,DotNetNuke.Entities.Urls.UrlAction,System.String,DotNetNuke.Entities.Urls.BrowserTypes)
- portalId
- Type: System..::..Int32
paramportalIdM:DotNetNuke.Entities.Portals.PortalAliasExtensions.GetAliasByPortalIdAndSettings(System.Collections.Generic.IEnumerable{DotNetNuke.Entities.Portals.PortalAliasInfo},System.Int32,DotNetNuke.Entities.Urls.UrlAction,System.String,DotNetNuke.Entities.Urls.BrowserTypes)
- result
- Type: DotNetNuke.Entities.Urls..::..UrlAction
paramresultM:DotNetNuke.Entities.Portals.PortalAliasExtensions.GetAliasByPortalIdAndSettings(System.Collections.Generic.IEnumerable{DotNetNuke.Entities.Portals.PortalAliasInfo},System.Int32,DotNetNuke.Entities.Urls.UrlAction,System.String,DotNetNuke.Entities.Urls.BrowserTypes)
- cultureCode
- Type: System..::..String
paramcultureCodeM:DotNetNuke.Entities.Portals.PortalAliasExtensions.GetAliasByPortalIdAndSettings(System.Collections.Generic.IEnumerable{DotNetNuke.Entities.Portals.PortalAliasInfo},System.Int32,DotNetNuke.Entities.Urls.UrlAction,System.String,DotNetNuke.Entities.Urls.BrowserTypes)
- browserType
- Type: DotNetNuke.Entities.Urls..::..BrowserTypes
parambrowserTypeM:DotNetNuke.Entities.Portals.PortalAliasExtensions.GetAliasByPortalIdAndSettings(System.Collections.Generic.IEnumerable{DotNetNuke.Entities.Portals.PortalAliasInfo},System.Int32,DotNetNuke.Entities.Urls.UrlAction,System.String,DotNetNuke.Entities.Urls.BrowserTypes)
Return Value
A ChosenPOrtalAliasUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'PortalAliasInfo>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].
Remarks
Note will return a best-match by portal if no specific culture Code match found