FederationMessage.GetBaseUrl(Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helper method that extracts the base URL from the specified URI.
public:
static Uri ^ GetBaseUrl(Uri ^ uri);
public static Uri GetBaseUrl (Uri uri);
static member GetBaseUrl : Uri -> Uri
Public Shared Function GetBaseUrl (uri As Uri) As Uri
Parameters
- uri
- Uri
The URI from which to extract the base URL.
Returns
The base URL that was extracted.
Remarks
The URL returned is the original URL without the query string.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.