共用方式為


Srch.U.ensureNotNullOrEmptyString Method (DisplayTemplatesSrch)

Ensures that the given value is not null, undefined or empty; throws an exception otherwise.

Srch.U.ensureNotNullOrEmptyString(value, context, methodName, paraName)

Parameters

  • value
    The value to check.

  • context
    The context from which the check originated.

  • methodName
    The name of the method that initiated the check.

  • paraName
    The parameter name of the value to check.