Converts the string representation of a Guid to its Guid equivalent. A return value indicates whether the operation succeeded.

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static bool TryParse(
	string s,
	out Guid returnValue
)
Visual Basic
Public Shared Function TryParse ( 
	s As String,
	<OutAttribute> ByRef returnValue As Guid
) As Boolean
Visual C++
public:
static bool TryParse(
	String^ s, 
	[OutAttribute] Guid% returnValue
)
F#
static member TryParse : 
        s : string * 
        returnValue : Guid byref -> bool 

Parameters

s
Type: System..::..String
A string containing a Guid to convert.
returnValue
Type: System..::..Guid%
Converted Guid, or Guid.Empty if the conversion was not successful.

Return Value

Type: Boolean
True if the operation succeeded, otherwise false.

See Also