跳到主要內容

IsValidServerRule

注意

此函式於 omp v1.1.0.2612 版本中新增,在更早的版本中無法使用!

Description​

Checks if the given server rule is valid.

NameDescription
const rule[]The server rule name to check.

Returns​

Returns true if the server rule is valid, otherwise false.

Examples​

if (IsValidServerRule("version"))
{
// Server rule is valid
}
else
{
// Server rule is not valid
}