Class WebPath
Inheritance
object
Namespace: Umbraco.Cms.Core.Routing
Assembly: Umbraco.Core.dll
Syntax
public class WebPath
Fields
View SourcePathSeparator
Declaration
public const char PathSeparator = '/'
Field Value
| Type | Description |
|---|---|
| char |
Methods
View SourceCombine(params string[]?)
Declaration
public static string Combine(params string[]? paths)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | paths |
Returns
| Type | Description |
|---|---|
| string |
IsWellFormedWebPath(string?, UriKind)
Determines whether the provided web path is well-formed according to the specified UriKind.
Declaration
public static bool IsWellFormedWebPath(string? webPath, UriKind uriKind)
Parameters
| Type | Name | Description |
|---|---|---|
| string | webPath | The web path to check. This can be null. |
| UriKind | uriKind | The kind of Uri (Absolute, Relative, or RelativeOrAbsolute). |
Returns
| Type | Description |
|---|---|
| bool | true if |