Cuemon .NET Framework
TryParse(String,UriKind,Uri) Method

A string containing the URI to convert.
The type of the URI.
When this method returns, contains the constructed System.Uri.
Converts the specified string representation of an URI value to its System.Uri equivalent.
Syntax
'Declaration
 
Public Overloads Shared Function TryParse( _
   ByVal uriString As String, _
   ByVal uriKind As UriKind, _
   ByRef result As Uri _
) As Boolean
public static bool TryParse( 
   string uriString,
   UriKind uriKind,
   out Uri result
)

Parameters

uriString
A string containing the URI to convert.
uriKind
The type of the URI.
result
When this method returns, contains the constructed System.Uri.

Return Value

true if the System.Uri was successfully created; otherwise, false.
Remarks
If this method returns true, the new System.Uri is in result.
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

UriUtility Class
UriUtility 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