SyntaxCheck.CheckMachineName Method (String)


This API supports the product infrastructure and is not intended to be used directly from your code.

Checks the syntax of the machine name to confirm that it does not contain "\".

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public static bool CheckMachineName(
	string value


Type: System.String

A string containing the machine name to check.

Return Value

Type: System.Boolean

true if value matches the proper machine name format; otherwise, false.

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft