 | StringExtensionsIsGUID Method |
string extension method to check if this is a valid GUID
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static bool IsGUID(
this string stringGuid,
bool allowAnyString = false
)
<ExtensionAttribute>
Public Shared Function IsGUID (
stringGuid As String,
Optional allowAnyString As Boolean = false
) As Boolean
public:
[ExtensionAttribute]
static bool IsGUID(
String^ stringGuid,
bool allowAnyString = false
)
Parameters
- stringGuid String
- The stringGuid.
- allowAnyString Boolean (Optional)
- if set to true no specific GUID format is required
Return Value
Booleantrue if the specified expression is unique identifier; otherwise,
false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also