FragmentString FragmentString FragmentString Struct

Definition

Provides correct handling for FragmentString value when needed to generate a URI string

public struct FragmentString : IEquatable<Microsoft.AspNetCore.Http.FragmentString>
type FragmentString = struct
Public Structure FragmentString
Implements IEquatable(Of FragmentString)
Inheritance
FragmentStringFragmentStringFragmentString
Implements

Constructors

FragmentString(String) FragmentString(String) 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 Empty Empty

Represents the empty fragment string. This field is read-only.

Properties

HasValue HasValue HasValue

True if the fragment string is not empty

Value Value Value

The escaped fragment string with the leading '#' character

Methods

Equals(FragmentString) Equals(FragmentString) Equals(FragmentString)
Equals(Object) Equals(Object) Equals(Object)
FromUriComponent(String) FromUriComponent(String) 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) FromUriComponent(Uri) FromUriComponent(Uri)

Returns an FragmentString given the fragment as from a Uri object. Relative Uri objects are not supported.

GetHashCode() GetHashCode() GetHashCode()
ToString() ToString() 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() ToUriComponent() 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) Equality(FragmentString, FragmentString) Equality(FragmentString, FragmentString)
Inequality(FragmentString, FragmentString) Inequality(FragmentString, FragmentString) Inequality(FragmentString, FragmentString)

Applies to