Class IconValidation
Shared size + content-type validation for icons, used by the store and by the operations that accept an upload or a downloaded URL, so the same rules apply on every path.
public static class IconValidation
- Inheritance
-
IconValidation
- Inherited Members
Methods
NormalizeContentType(string)
The bare, lower-cased media type — drops any parameters (e.g. ; charset=…) and trims.
Null/blank input returns null.
public static string NormalizeContentType(string contentType)
Parameters
contentTypestring
Returns
Validate(byte[], string, IconOptions)
public static IconValidationResult Validate(byte[] data, string contentType, IconOptions options)
Parameters
databyte[]contentTypestringoptionsIconOptions