Class PermanentFileLinkMap
Permanent link map for Virtual Path Provider files
Inherited Members
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class PermanentFileLinkMap : PermanentLinkMapConstructors
PermanentFileLinkMap(Guid, String)
Initializes a new instance of the PermanentFileLinkMap class.
Declaration
public PermanentFileLinkMap(Guid guid, string virtualPath)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Guid | guid | The GUID for the file. | 
| System.String | virtualPath | The virtual path. | 
PermanentFileLinkMap(Guid, String, Uri)
Initializes a new instance of the PermanentFileLinkMap class.
Declaration
protected PermanentFileLinkMap(Guid guid, string extension, Uri mappedUrl)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Guid | guid | The GUID. | 
| System.String | extension | The extension of the file. | 
| System.Uri | mappedUrl | The mapped URL. | 
PermanentFileLinkMap(Uri)
Initializes a new instance of the PermanentFileLinkMap class.
Declaration
public PermanentFileLinkMap(Uri url)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Uri | url | The URL. | 
Methods
AddResolver(IFileResolver)
Adds the resolver to the end of the resolver list.
Declaration
[Obsolete("Use PermanentFileLinkMapStore.Instance")]
public static void AddResolver(IFileResolver resolver)Parameters
| Type | Name | Description | 
|---|---|---|
| IFileResolver | resolver | The resolver. | 
Remarks
The resolver will be called to resolve links between permanent link and mapped format.
ClearResolvers()
Clears the list of resolvers.
Declaration
[Obsolete("Use PermanentFileLinkMapStore.Instance")]
public static void ClearResolvers()InsertResolver(IFileResolver)
Inserts the resolver at the start of the resolver list.
Declaration
[Obsolete("Use PermanentFileLinkMapStore.Instance")]
public static void InsertResolver(IFileResolver resolver)Parameters
| Type | Name | Description | 
|---|---|---|
| IFileResolver | resolver | The resolver. | 
Remarks
The resolver will be called to resolve links between permanent link and mapped format.
VirtualPathToUri(String)
Converts a virtual path to a URI with correct escaping.
Declaration
public static Uri VirtualPathToUri(string virtualPath)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | virtualPath | The virtual path. | 
Returns
| Type | Description | 
|---|---|
| System.Uri | 
