Click or drag to resize

StringExtensionsIsGUID Method

string extension method to check if this is a valid GUID

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static bool IsGUID(
	this 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

Boolean
true 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