Cuemon .NET Framework
IsGuid(String) Method

The string to verify has a valid format of a System.Guid.
Determines whether the specified value has a valid format of a System.Guid.
Syntax
'Declaration
 
Public Overloads Shared Function IsGuid( _
   ByVal value As String _
) As Boolean
public static bool IsGuid( 
   string value
)

Parameters

value
The string to verify has a valid format of a System.Guid.

Return Value

true if the specified value has a format of a System.Guid; otherwise, false.
Remarks
This implementation only evaluates for GUID formats of: GuidFormats.DigitFormat | GuidFormats.BraceFormat | GuidFormats.ParenthesisFormat, eg. 32 digits separated by hyphens; 32 digits separated by hyphens, enclosed in brackets and 32 digits separated by hyphens, enclosed in parentheses.
The reason not to include GuidFormats.NumberFormat, eg. 32 digits is the possible unintended GUID result of a Cuemon.Security.Cryptography.HashAlgorithmType.MD5 string representation.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Condition Class
Condition Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback