Skip to content

NotEmptyAttribute class

Nulls and empty strings are not allowed.

[AttributeUsage(AttributeTargets.All)]
public class NotEmptyAttribute : ValidationAttributeBase

Public Members

name description
NotEmptyAttribute() The default constructor.
override IsValid(…)

Protected Members

name description
override GetErrorMessage()
override IsValid(…)

See Also