Table of Contents

Class IconValidation

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

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

contentType string

Returns

string

Validate(byte[], string, IconOptions)

public static IconValidationResult Validate(byte[] data, string contentType, IconOptions options)

Parameters

data byte[]
contentType string
options IconOptions

Returns

IconValidationResult