FileBrowserContentProviderRemoveProtocolNameAndServerName Method |
Removes the protocol and the server names from the given url.
Namespace: Kettic.AspNet.Controls.WidgetsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public static string RemoveProtocolNameAndServerName(
string url
)
Public Shared Function RemoveProtocolNameAndServerName (
url As String
) As String
public:
static String^ RemoveProtocolNameAndServerName(
String^ url
)
static member RemoveProtocolNameAndServerName :
url : string -> string
Parameters
- url
- Type: SystemString
Fully qualified url to a file or directory item.
Return Value
Type:
StringThe root based absolute path.
Remarks
Url: http://www.myserver.com/myapp/mydirectory/myfile
Result: /myapp/mydirectory/myfile
Url: www.myserver.com/myapp/mydirectory/myfile
Result: /myapp/mydirectory/myfile
See Also