C-DEngine 5.105

TheCommonUtils..::..CUri Method

Safely converts an object (likely a string) to a System.Uri object.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static Uri CUri(
	Object inObj,
	bool IgnoreGuids
)
Public Shared Function CUri ( _
	inObj As Object, _
	IgnoreGuids As Boolean _
) As Uri
public:
static Uri^ CUri(
	Object^ inObj, 
	bool^ IgnoreGuids
)

Parameters

inObj
Type: Object
Object to be converted
IgnoreGuids
Type: Boolean
If true, the converter removes all '{' and '}' from the string first. Since DeviceUris of the C-DEngine have a guid as the Host, the '{' and '}' have to be removed first

Return Value

A System.Uri object. On error, null is returned.