UriExtensionsToNameValueCollection(Uri) Method
Gets que query of the source Uri using UTF8.
Namespace: DevCase.Extensions.UriExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static NameValueCollection ToNameValueCollection(
this Uri sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function ToNameValueCollection (
sender As Uri
) As NameValueCollection
Dim sender As Uri
Dim returnValue As NameValueCollection
returnValue = sender.ToNameValueCollection()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static NameValueCollection^ ToNameValueCollection(
Uri^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member ToNameValueCollection :
sender : Uri -> NameValueCollection
No code example is currently available or this language may not be supported.
- sender Uri
-
The source Uri.
NameValueCollection
The resulting
NameValueCollection
containing the query parameters and values.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Uri. 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).
This is a code example.
No code example is currently available or this language may not be supported.
Dim uri As New Uri("https://www.youtube.com/watch?v=FtcVlSytJF4")
Dim query As NameValueCollection = ToNameValueCollection(uri)
Dim id As String = Query("v")
Console.WriteLine(id)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.