SyntaxCheck.CheckMachineName Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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