Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following formatting constants are available for formatting DateTime or TimeSpan values in the current culture.

An application can use these constants as follows:

  • Function: Format(Now(), ShortTimeFormat())

  • Operator: Now => ShortTimeFormat (described in the Expression Grammatik )

Funktion

Namespace Global

Beschreibung

Parameter

ShortTimeFormat(): String

Corresponds to t; formats to e.g. 06:30

Beispiel:

Format(Now(), ShortTimeFormat())

LongTimeFormat(): String

Corresponds to T; formats to e.g. 06:30:00

ShortDateFormat(): String

Corresponds to d; formats to e.g. 10.04.2008

LongDateFormat(): String

Corresponds to D; formats to e.g. Thursday, 10 April 2008

...

  • Function: Format(Now, ShortTimeFormat)

  • Operator: Now => ShortTimeFormat (described in the Expression Grammatik )

System

Die folgenden Funktionen stehen im System namespace zur Verfügung.

...

Funktion

Namespace User

Beschreibung

Parameter

IsInRole(Role: String): Boolean

Gibt an ob der aktuelle Benutzer die angegebene Rolle besitzt.

Id(): Guid

Die Id des aktuellen Benutzers.

Claim(clainName: string)

Zugriff auf die Claims des aktuellen Users.

  • claimName: string Der Name des Claims.

...