Click or drag to resize
OSIsoft, LLC

AFObjectValidateName Method (String, String)

Helper function to validate the name according to the default rules for valid names in the AF SDK.

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version:
public static bool ValidateName(
	string name,
	out string errMsg


Type: SystemString
The name to be validated.
Type: SystemString
If the name is not valid, this parameter contains an error message which can be displayed to the user explaining the reason the name was invalid.

Return Value

Type: Boolean
Returns if the name is valid. Otherwise is returned and the errMsg parameter is set.
No control characters are allowed along with the following characters: *'?;{}[]|`"\. Names must also be less than 260 characters in length.
Version Information


Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5, 2.4
See Also
Enabling Operational Intelligence