Returns the chosen portal alias for a specific portal Id and culture Code
Namespace: DotNetNuke.Entities.PortalsAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static PortalAliasInfo GetAliasByPortalIdAndSettings( this IEnumerable<PortalAliasInfo> aliases, int portalId, UrlAction result, string cultureCode, FriendlyUrlSettings settings ) |
Visual Basic |
---|
<ExtensionAttribute> Public Shared Function GetAliasByPortalIdAndSettings ( aliases As IEnumerable(Of PortalAliasInfo), portalId As Integer, result As UrlAction, cultureCode As String, settings As FriendlyUrlSettings ) 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.FriendlyUrlSettings)
- 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.FriendlyUrlSettings)
- 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.FriendlyUrlSettings)
- 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.FriendlyUrlSettings)
- settings
- Type: DotNetNuke.Entities.Urls..::..FriendlyUrlSettings
paramsettingsM:DotNetNuke.Entities.Portals.PortalAliasExtensions.GetAliasByPortalIdAndSettings(System.Collections.Generic.IEnumerable{DotNetNuke.Entities.Portals.PortalAliasInfo},System.Int32,DotNetNuke.Entities.Urls.UrlAction,System.String,DotNetNuke.Entities.Urls.FriendlyUrlSettings)
Return Value
returnsM:DotNetNuke.Entities.Portals.PortalAliasExtensions.GetAliasByPortalIdAndSettings(System.Collections.Generic.IEnumerable{DotNetNuke.Entities.Portals.PortalAliasInfo},System.Int32,DotNetNuke.Entities.Urls.UrlAction,System.String,DotNetNuke.Entities.Urls.FriendlyUrlSettings)Usage 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
Detects the current browser type if possible. If can't be deteced 'normal' is used. If a specific browser type is required, use overload with browser type.