[This is preliminary documentation and is subject to change.]
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static Uri AsUri(
this string val,
Uri dflt = null
)
public static Uri AsUri(
this string val,
Uri dflt = null
)
<ExtensionAttribute>
Public Shared Function AsUri (
val As String,
Optional dflt As Uri = Nothing
) As Uri
<ExtensionAttribute>
Public Shared Function AsUri (
val As String,
Optional dflt As Uri = Nothing
) As Uri
public:
[ExtensionAttribute]
static Uri^ AsUri(
String^ val,
Uri^ dflt = nullptr
)
public:
[ExtensionAttribute]
static Uri^ AsUri(
String^ val,
Uri^ dflt = nullptr
)
static member AsUri :
val : string *
?dflt : Uri
(* Defaults:
let _dflt = defaultArg dflt null
*)
-> Uri
static member AsUri :
val : string *
?dflt : Uri
(* Defaults:
let _dflt = defaultArg dflt null
*)
-> Uri
Return Value
Type:
UriUsage 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).