UrlShortenerClientShortenAsync(Uri) Method
Asynchronously shortens the specified Url.
Namespace: DevCase.ThirdParty.Google.UrlShortenerAssembly: DevCase.net48.ThirdParty.GoogleServices (in DevCase.net48.ThirdParty.GoogleServices.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public Task<string> ShortenAsync(
Uri uri
)
Public Function ShortenAsync (
uri As Uri
) As Task(Of String)
Dim instance As UrlShortenerClient
Dim uri As Uri
Dim returnValue As Task(Of String)
returnValue = instance.ShortenAsync(uri)
public:
Task<String^>^ ShortenAsync(
Uri^ uri
)
member ShortenAsync :
uri : Uri -> Task<string>
No code example is currently available or this language may not be supported.
- uri Uri
-
The source URI to shorten.
TaskString
The resulting
TaskTResult containing the shortened Url.
This is a code example.
No code example is currently available or this language may not be supported.
Dim client As New UrlShortenerClient("YOUR API KEY")
Dim authSuccess As Boolean = Await client.AuthorizeAsync()
Dim sourceUrl As String = "https://msdn.microsoft.com/"
Dim shortenedUrl As String = Await client.ShortenAsync(sourceUrl)
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.