Helper method that extracts the BaseUrl
for a given Uri.
Namespace:
Microsoft.IdentityModel.Protocols.WSFederation
Assembly: Microsoft.IdentityModel (in
microsoft.identitymodel.dll)
Usage
Visual Basic |
Dim uri As Uri
Dim returnValue As Uri
returnValue = WSFederationMessage.GetBaseUrl(uri)
|
Syntax
Visual Basic |
Public Shared Function GetBaseUrl ( _
uri As Uri _
) As Uri
|
C# |
public static Uri GetBaseUrl (
Uri uri
)
|
C++ |
public:
static Uri^ GetBaseUrl (
Uri^ uri
)
|
J# |
public static Uri GetBaseUrl (
Uri uri
)
|
JScript |
public static function GetBaseUrl (
uri : Uri
) : Uri
|
Parameters
- uri
-
The Uri from which to extract the Base Url.
Return Value
The base Uri.
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
See Also