Class SecureFileTransform
Secure File ImageTransform class.
Inherited Members
Namespace: DotNetNuke.Services.GeneratedImage.StartTransform
Assembly: DotNetNuke.dll
Syntax
public class SecureFileTransform : ImageTransform
Constructors
| Improve this Doc View SourceSecureFileTransform()
Initializes a new instance of the SecureFileTransform class.
Declaration
public SecureFileTransform()
Properties
| Improve this Doc View SourceEmptyImage
Gets or sets the Image to return if no image or error.
Declaration
public Image EmptyImage { get; set; }
Property Value
Type | Description |
---|---|
Image |
SecureFile
Gets or sets set IFileInfo object of given FileId.
Declaration
public IFileInfo SecureFile { get; set; }
Property Value
Type | Description |
---|---|
IFileInfo |
UniqueString
Gets provides an Unique String for the image transformation.
Declaration
public override string UniqueString { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceDoesHaveReadFolderPermission(IFolderInfo)
Checks if the current user have READ permission on a given folder.
Declaration
public bool DoesHaveReadFolderPermission(IFolderInfo folder)
Parameters
Type | Name | Description |
---|---|---|
IFolderInfo | folder | Folder info object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the user has READ permission, false otherwise. |
ProcessImage(Image)
Processes an input image returing a secure file image.
Declaration
public override Image ProcessImage(Image image)
Parameters
Type | Name | Description |
---|---|---|
Image | image | Input image. |
Returns
Type | Description |
---|---|
Image | Image result after image transformation. |
Overrides
Remarks
If the secure file is not an image, it returns an image representing the file extension.