Contact us

Applies to: Customer's Canvas On-Premises; Design Atoms .NET 7.4

Skip to main content

Class TemplateStorageHelper

Namespace: Aurigma.DesignAtoms.Convert.TemplateStorage

Assembly: Aurigma.DesignAtoms.dll

Syntax
public static class TemplateStorageHelper

Inheritance: System.Object -> TemplateStorageHelper

Inherited Members​

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Methods​

GetAllowedExtensions​

public static IEnumerable<string> GetAllowedExtensions(TemplateImageType type, bool withoutDot = false)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Convert.TemplateStorage.TemplateImageTypetype
System.BooleanwithoutDot

Returns​

System.Collections.Generic.IEnumerable<System.String>

GetAllowedExtensionFromName​

public static string GetAllowedExtensionFromName(TemplateImageType type, string name)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Convert.TemplateStorage.TemplateImageTypetype
System.Stringname

Returns​

System.String

HasCommonExtension​

public static bool HasCommonExtension(string fileName)

Parameters​

TypeNameDescription
System.StringfileName

Returns​

System.Boolean

HasAllowedExtension​

public static bool HasAllowedExtension(string fileName, IEnumerable<string> allowedExtensions)

Parameters​

TypeNameDescription
System.StringfileName
System.Collections.Generic.IEnumerable<System.String>allowedExtensions

Returns​

System.Boolean

Fields​

ConfigExtensions​

public static readonly string[] ConfigExtensions

CommonExtensions​

public static readonly string[] CommonExtensions

MockupExtensions​

public static readonly string[] MockupExtensions

DesignExtensions​

public static readonly string[] DesignExtensions
Was this page helpful?