Click or drag to resize
LicenseAliasValidationNumberOfValidAliasesRequired Property
Gets or sets the number of valid aliases required for validation to pass (REQUIRE_ALL_ALIASES by default).

Namespace: com.softwarekey.Client.Licensing
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntax
public int NumberOfValidAliasesRequired { get; set; }

Property Value

Type: Int32
Remarks

Using a value of REQUIRE_ALL_ALIASES to require all configured aliases to pass validation is recommended. This value implicitly requires at least one alias to pass validation (meaning validation will fail when no aliases are configured and REQUIRE_ALL_ALIASES is used).

You may set this property to 0 (zero) to not require any aliases to pass validation, though this is not recommended.

Alternatively, you may set this property's value to a minimum number of aliases that must pass validation. So for example, if you have configured 5 aliases for your license, you can set this property to 3 to require at least 3 out of the 5 to pass validation. An example of where this can be useful is in a scenario where you have 2 aliases stored in user-specific locations, and the other 3 in global locations. The two user-specific locations should not encounter any issues, whereas the global locations might. So setting the value to 3 essentially makes it so that in the worst-case scenario with permissions, the two user-aliases will pass validation, and you are implicitly requiring at least 1 global alias to pass validation.

See Also