Class SystemInfo
System information utility class
Inherited Members
Namespace:FubarDev.WebDavServer.Utils
Assembly:FubarDev.WebDavServer.dll
Syntax
public static class SystemInfo
Fields
| Improve this Doc View SourceUserHomePathClaim
The name of the claim for the user home path
Declaration
public const string UserHomePathClaim = "DAV:user-home-path"
Field Value
| Type | Description |
|---|---|
| String |
Methods
| Improve this Doc View SourceGetHomePath()
Gets the home path information
Declaration
[NotNull]
public static SystemInfo.HomePathInfo GetHomePath()
Returns
| Type | Description |
|---|---|
| SystemInfo.HomePathInfo | The found home path |
GetUserHomePath(IPrincipal, String, String)
Gets the home path of the user
Declaration
[NotNull]
public static string GetUserHomePath([NotNull] IPrincipal principal, string homePath = null, string anonymousUserName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IPrincipal | principal | The principal to get the home path for |
| String | homePath | The home path to use |
| String | anonymousUserName | The user name for the unauthenticated user |
Returns
| Type | Description |
|---|---|
| String | The home path of the user |