PathString Struct
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.
Provides correct escaping for Path and PathBase values when needed to reconstruct a request or redirect URI string
public struct PathString : IEquatable<Microsoft.Owin.PathString>
type PathString = struct
Public Structure PathString
Implements IEquatable(Of PathString)
- Inheritance
-
PathString
- Implements
Constructors
PathString(String) |
Initialize the path string with a given value. This value must be in un-escaped format. Use PathString.FromUriComponent(value) if you have a path value which is in an escaped format. |
Fields
Empty |
Represents the empty path. This field is read-only. |
Properties
HasValue |
True if the path is not empty |
Value |
The unescaped path value |
Methods
Add(PathString) |
Adds two PathString instances into a combined PathString value. |
Add(QueryString) |
Combines a PathString and QueryString into the joined URI formatted string value. |
Equals(Object) |
Compares this PathString value to another value. The default comparison is StringComparison.OrdinalIgnoreCase. |
Equals(PathString, StringComparison) |
Compares this PathString value to another value using a specific StringComparison type |
Equals(PathString) |
Compares this PathString value to another value. The default comparison is StringComparison.OrdinalIgnoreCase. |
FromUriComponent(String) |
Returns an PathString given the path as it is escaped in the URI format. The string MUST NOT contain any value that is not a path. |
FromUriComponent(Uri) |
Returns an PathString given the path as from a Uri object. Relative Uri objects are not supported. |
GetHashCode() |
Returns the hash code for the PathString value. The hash code is provided by the OrdinalIgnoreCase implementation. |
StartsWithSegments(PathString, PathString) |
Checks if this instance starts with or exactly matches the other instance. Only full segments are matched. |
StartsWithSegments(PathString) |
Checks if this instance starts with or exactly matches the other instance. Only full segments are matched. |
ToString() |
Provides the path string escaped in a way which is correct for combining into the URI representation. |
ToUriComponent() |
Provides the path string escaped in a way which is correct for combining into the URI representation. |
Operators
Addition(PathString, PathString) |
Operator call through to Add |
Addition(PathString, QueryString) |
Operator call through to Add |
Equality(PathString, PathString) |
Operator call through to Equals |
Inequality(PathString, PathString) |
Operator call through to Equals |