Returns all the redirect rules for the specified portal

Namespace: DotNetNuke.Entities.Urls
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static void LoadFromXmlFile(
	this Dictionary<int, List<ParameterRedirectAction>> actions,
	string fileName,
	int portalId,
	bool portalSpecific,
	ref List<string> messages
)
Visual Basic
<ExtensionAttribute> 
Public Shared Sub LoadFromXmlFile ( 
	actions As Dictionary(Of Integer, List(Of ParameterRedirectAction)),
	fileName As String,
	portalId As Integer,
	portalSpecific As Boolean,
	ByRef messages As List(Of String)
)

Parameters

actions
Type: System.Collections.Generic..::..Dictionary<(Of <(<'Int32, List<(Of <(<'ParameterRedirectAction>)>)>>)>)>
paramactionsM:DotNetNuke.Entities.Urls.CollectionExtensions.LoadFromXmlFile(System.Collections.Generic.Dictionary{System.Int32,System.Collections.Generic.List{DotNetNuke.Entities.Urls.ParameterRedirectAction}},System.String,System.Int32,System.Boolean,System.Collections.Generic.List{System.String}@)
fileName
Type: System..::..String
paramfileNameM:DotNetNuke.Entities.Urls.CollectionExtensions.LoadFromXmlFile(System.Collections.Generic.Dictionary{System.Int32,System.Collections.Generic.List{DotNetNuke.Entities.Urls.ParameterRedirectAction}},System.String,System.Int32,System.Boolean,System.Collections.Generic.List{System.String}@)
portalId
Type: System..::..Int32
paramportalIdM:DotNetNuke.Entities.Urls.CollectionExtensions.LoadFromXmlFile(System.Collections.Generic.Dictionary{System.Int32,System.Collections.Generic.List{DotNetNuke.Entities.Urls.ParameterRedirectAction}},System.String,System.Int32,System.Boolean,System.Collections.Generic.List{System.String}@)
portalSpecific
Type: System..::..Boolean
If true, all rules belong to supplied portalId, even if not specified.
messages
Type: System.Collections.Generic..::..List<(Of <(<'String>)>)>%
parammessagesM:DotNetNuke.Entities.Urls.CollectionExtensions.LoadFromXmlFile(System.Collections.Generic.Dictionary{System.Int32,System.Collections.Generic.List{DotNetNuke.Entities.Urls.ParameterRedirectAction}},System.String,System.Int32,System.Boolean,System.Collections.Generic.List{System.String}@)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Dictionary<(Of <(<'Int32, List<(Of <(<'ParameterRedirectAction>)>)>>)>)>. 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

807 : change to allow specificatoin of assumption that all rules belong to the supplied portal

See Also