StringValues Struct
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.
Represents zero/null, one, or many strings in an efficient way.
public value class StringValues : IEquatable<cli::array <System::String ^> ^>, IEquatable<Microsoft::Extensions::Primitives::StringValues>, IEquatable<System::String ^>, System::Collections::Generic::ICollection<System::String ^>, System::Collections::Generic::IEnumerable<System::String ^>, System::Collections::Generic::IList<System::String ^>, System::Collections::Generic::IReadOnlyCollection<System::String ^>, System::Collections::Generic::IReadOnlyList<System::String ^>
public readonly struct StringValues : IEquatable<Microsoft.Extensions.Primitives.StringValues>, IEquatable<string[]>, IEquatable<string>, System.Collections.Generic.ICollection<string>, System.Collections.Generic.IEnumerable<string>, System.Collections.Generic.IList<string>, System.Collections.Generic.IReadOnlyCollection<string>, System.Collections.Generic.IReadOnlyList<string>
type StringValues = struct
interface IList<string>
interface ICollection<string>
interface seq<string>
interface IEnumerable
interface IReadOnlyList<string>
interface IReadOnlyCollection<string>
Public Structure StringValues
Implements ICollection(Of String), IEnumerable(Of String), IEquatable(Of String()), IEquatable(Of String), IEquatable(Of StringValues), IList(Of String), IReadOnlyCollection(Of String), IReadOnlyList(Of String)
- Inheritance
- Implements
String |
Initializes a new instance of the StringValues structure using the specified string. |
String |
Initializes a new instance of the StringValues structure using the specified array of strings. |
Empty |
A readonly instance of the StringValues struct whose value is an empty string array. |
Count |
Gets the number of String elements contained in this StringValues. |
Item[Int32] |
Gets the String at the specified index. |
Concat(String, String |
Concatenates specified instance of String with specified StringValues. |
Concat(String |
Concatenates specified instance of StringValues with specified String. |
Concat(String |
Concatenates two specified instances of StringValues. |
Equals(Object) |
Determines whether this instance and a specified object have the same value. |
Equals(String, String |
Determines whether the specified String and StringValues objects have the same values. |
Equals(String) |
Determines whether this instance and a specified String, have the same value. |
Equals(String[], String |
Determines whether the specified string array and StringValues objects have the same values. |
Equals(String[]) |
Determines whether this instance and a specified string array have the same values. |
Equals(String |
Determines whether the specified StringValues and String objects have the same values. |
Equals(String |
Determines whether the specified StringValues and string array objects have the same values. |
Equals(String |
Determines whether two specified StringValues objects have the same values in the same order. |
Equals(String |
Determines whether this instance and another specified StringValues object have the same values. |
Get |
Retrieves an object that can iterate through the individual strings in this StringValues. |
Get |
Returns a hash code for this instance. |
Is |
Indicates whether the specified StringValues contains no string values. |
To |
Creates a string array from the current StringValues object. |
To |
Converts the value of the current StringValues object to its equivalent string representation, with multiple values joined as a comma separated string. |
Equality(Object, String |
Determines whether the specified Object, which must be a StringValues, String, or array of String, and specified StringValues, have the same value. |
Equality(String, String |
Determines whether the specified String and StringValues objects have the same values. |
Equality(String[], String |
Determines whether the specified string array and StringValues objects have the same values. |
Equality(String |
Determines whether the specified StringValues and Object, which must be a StringValues, String, or array of String, have the same value. |
Equality(String |
Determines whether the specified StringValues and String objects have the same values. |
Equality(String |
Determines whether the specified StringValues and string array objects have the same values. |
Equality(String |
Determines whether two specified StringValues have the same values. |
Implicit(String to String |
Defines an implicit conversion of a given string to a StringValues. |
Implicit(String[] to String |
Defines an implicit conversion of a given string array to a StringValues. |
Implicit(String |
Defines an implicit conversion of a given StringValues to a string, with multiple values joined as a comma separated string. |
Implicit(String |
Defines an implicit conversion of a given StringValues to a string array. |
Inequality(Object, String |
Determines whether the specified Object and StringValues object have the same values. |
Inequality(String, String |
Determines whether the specified String and StringValues objects have different values. |
Inequality(String[], String |
Determines whether the specified string array and StringValues have different values. |
Inequality(String |
Determines whether the specified StringValues and Object, which must be a StringValues, String, or array of String, have different values. |
Inequality(String |
Determines whether the specified StringValues and String objects have different values. |
Inequality(String |
Determines whether the specified StringValues and string array have different values. |
Inequality(String |
Determines whether two specified StringValues have different values. |
ICollection<String>.Add(String) |
Adds an item to the collection. |
ICollection<String>.Clear() |
Removes all items from the collection. |
ICollection<String>.Contains(String) |
Determines whether a string is in the StringValues. |
ICollection<String>.Copy |
Copies the entire StringValuesto a string array, starting at the specified index of the target array. |
ICollection<String>.Is |
Gets a value indicating whether the collection is read-only. |
ICollection<String>.Remove(String) |
Removes the first occurrence of a specific object from the collection. |
IEnumerable. |
Returns an enumerator that iterates through a collection. |
IEnumerable<String>.Get |
Returns an enumerator that iterates through the collection. |
IList<String>.Index |
Returns the zero-based index of the first occurrence of an item in the StringValues. |
IList<String>.Insert(Int32, String) |
Inserts an item to the IList<T> at the specified index. |
IList<String>.Item[Int32] |
Gets the String at the specified index. |
IList<String>.Remove |
Removes the IList<T> item at the specified index. |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: