Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​ComponentModel.​SyntaxCheck
Assembly: System.ComponentModel.TypeConverter
Inheritance: object → SyntaxCheck
Provides methods to verify the machine name and path conform to a specific syntax. This class cannot be inherited.
Methods
public static
bool
CheckMachineName​(string value)
Checks the syntax of the machine name to confirm that it does not contain "\".
Returns <see langword="true" /> if <paramref name="value" /> matches the proper machine name format; otherwise, <see langword="false" /> .
value
A string containing the machine name to check.
public static
bool
CheckPath​(string value)
Checks the syntax of the path to see whether it starts with "\\".
Returns <see langword="true" /> if <paramref name="value" /> matches the proper path format; otherwise, <see langword="false" /> .
value
A string containing the path to check.
public static
bool
CheckRootedPath​(string value)
Checks the syntax of the path to see if it starts with "\" or drive letter "C:".
Returns <see langword="true" /> if <paramref name="value" /> matches the proper path format; otherwise, <see langword="false" /> .
value
A string containing the path to check.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object