FragmentString 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 handling for FragmentString value when needed to generate a URI string
public value class FragmentString : IEquatable<Microsoft::AspNetCore::Http::FragmentString>
public struct FragmentString : IEquatable<Microsoft.AspNetCore.Http.FragmentString>
public readonly struct FragmentString : IEquatable<Microsoft.AspNetCore.Http.FragmentString>
type FragmentString = struct
Public Structure FragmentString
Implements IEquatable(Of FragmentString)
- Inheritance
-
FragmentString
- Implements
Constructors
FragmentString(String) |
Initialize the fragment string with a given value. This value must be in escaped and delimited format with a leading '#' character. |
Fields
Empty |
Represents the empty fragment string. This field is read-only. |
Properties
HasValue |
True if the fragment string is not empty |
Value |
The escaped fragment string with the leading '#' character |
Methods
Equals(FragmentString) |
Evaluates if the current fragment is equal to another fragment |
Equals(Object) |
Evaluates if the current fragment is equal to an object |
FromUriComponent(String) |
Returns an FragmentString given the fragment as it is escaped in the URI format. The string MUST NOT contain any value that is not a fragment. |
FromUriComponent(Uri) |
Returns an FragmentString given the fragment as from a Uri object. Relative Uri objects are not supported. |
GetHashCode() |
Gets a hash code for the value. |
ToString() |
Provides the fragment string escaped in a way which is correct for combining into the URI representation. A leading '#' character will be included unless the Value is null or empty. Characters which are potentially dangerous are escaped. |
ToUriComponent() |
Provides the fragment string escaped in a way which is correct for combining into the URI representation. A leading '#' character will be included unless the Value is null or empty. Characters which are potentially dangerous are escaped. |
Operators
Equality(FragmentString, FragmentString) |
Evaluates if one fragment is equal to another. |
Inequality(FragmentString, FragmentString) |
Evalutes if one fragment is not equal to another. |