StringValues Struktura

Definicja

Reprezentuje zero/null, jeden lub wiele ciągów w wydajny sposób.

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 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>
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>
type StringValues = struct
    interface ICollection<string>
    interface seq<string>
    interface IEnumerable
    interface IList<string>
    interface IReadOnlyCollection<string>
    interface IReadOnlyList<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)
Dziedziczenie
StringValues
Implementuje

Konstruktory

StringValues(String)

Inicjuje StringValues nowe wystąpienie struktury przy użyciu określonego ciągu.

StringValues(String[])

Inicjuje StringValues nowe wystąpienie struktury przy użyciu określonej tablicy ciągów.

Pola

Empty

Wystąpienie readonly StringValues struktury, którego wartość jest pustą tablicą ciągów.

Właściwości

Count

Pobiera liczbę elementów ciągu zawartych w tym StringValueselemecie .

Item[Int32]

Pobiera ciąg w indeksie.

Metody

Concat(String, StringValues)

Łączy określone wystąpienie z String określonym .StringValues

Concat(StringValues, String)

Łączy określone wystąpienie z StringValues określonym .String

Concat(StringValues, StringValues)

Łączy dwa określone wystąpienia klasy StringValues.

Equals(Object)

Określa, czy to wystąpienie i określony obiekt mają taką samą wartość.

Equals(String)

Określa, czy to wystąpienie i określony ciąg mają taką samą wartość.

Equals(String, StringValues)

Określa, czy określone String obiekty i StringValues mają te same wartości.

Equals(String[])

Określa, czy to wystąpienie i określona tablica ciągów mają te same wartości.

Equals(String[], StringValues)

Określa, czy określona tablica ciągów i StringValues obiekty mają te same wartości.

Equals(StringValues)

Określa, czy to wystąpienie i inny określony StringValues obiekt mają te same wartości.

Equals(StringValues, String)

Określa, czy określone StringValues obiekty i String mają te same wartości.

Equals(StringValues, String[])

Określa, czy określone StringValues obiekty tablicy ciągów mają te same wartości.

Equals(StringValues, StringValues)

Określa, czy dwa określone StringValues obiekty mają te same wartości w tej samej kolejności.

GetEnumerator()

Pobiera obiekt, który może iterować poszczególne ciągi w tym obiekcie StringValues.

GetHashCode()
IsNullOrEmpty(StringValues)

Wskazuje, czy określona wartość StringValues nie zawiera żadnych wartości ciągu.

ToArray()

Tworzy tablicę ciągów na podstawie bieżącego StringValues obiektu.

ToString()

Konwertuje wartość bieżącego StringValues obiektu na równoważną reprezentację ciągu z wieloma wartościami sprzężonymi jako ciąg rozdzielany przecinkami.

Operatory

Equality(Object, StringValues)

Określa, czy określony Objectelement , który musi być tablicą StringValuesString, Stringlub , i ma StringValuestę samą wartość.

Equality(String, StringValues)

Określa, czy określone String obiekty i StringValues mają te same wartości.

Equality(String[], StringValues)

Określa, czy określona tablica ciągów i StringValues obiekty mają te same wartości.

Equality(StringValues, Object)

Określa, czy określona StringValues i Object, która musi być tablicą StringValues, Stringlub ma Stringtaką samą wartość.

Equality(StringValues, String)

Określa, czy określone StringValues obiekty i String mają te same wartości.

Equality(StringValues, String[])

Określa, czy określone StringValues obiekty tablicy ciągów mają te same wartości.

Equality(StringValues, StringValues)

Określa, czy dwa określone StringValues mają te same wartości.

Implicit(String to StringValues)

Definiuje niejawną konwersję StringValuesdanego ciągu na .

Implicit(String[] to StringValues)

Definiuje niejawną konwersję StringValuesdanej tablicy ciągów na .

Implicit(StringValues to String)

Definiuje niejawną konwersję danego StringValues ciągu z wieloma wartościami połączonymi jako ciąg rozdzielany przecinkami.

Implicit(StringValues to String[])

Definiuje niejawną konwersję danej StringValues wartości do tablicy ciągów.

Inequality(Object, StringValues)

Określa, czy określony Object obiekt i StringValues mają te same wartości.

Inequality(String, StringValues)

Określa, czy określone String obiekty i StringValues mają różne wartości.

Inequality(String[], StringValues)

Określa, czy określona tablica ciągów ma StringValues różne wartości.

Inequality(StringValues, Object)

Określa, czy określone StringValues wartości i Object, które muszą być tablicą StringValuesString, Stringlub , mają różne wartości.

Inequality(StringValues, String)

Określa, czy określone StringValues obiekty i String mają różne wartości.

Inequality(StringValues, String[])

Określa, czy określona StringValues tablica ciągów ma różne wartości.

Inequality(StringValues, StringValues)

Określa, czy dwie określone StringValues mają różne wartości.

Jawne implementacje interfejsu

ICollection<String>.Add(String)

Dodaje element do kolekcji.

ICollection<String>.Clear()

Usuwa wszystkie elementy z kolekcji.

ICollection<String>.Contains(String)

Określa, czy ciąg znajduje się w obiekcie StringValues.

ICollection<String>.CopyTo(String[], Int32)

Kopiuje cały StringValueselement do tablicy ciągów, zaczynając od określonego indeksu tablicy docelowej.

ICollection<String>.IsReadOnly

Pobiera wartość wskazującą, czy kolekcja jest przeznaczona tylko do odczytu.

ICollection<String>.Remove(String)

Usuwa pierwsze wystąpienie konkretnego obiektu z kolekcji.

IEnumerable.GetEnumerator()

Zwraca moduł wyliczający, który iteruje po kolekcji.

IEnumerable<String>.GetEnumerator()

Zwraca moduł wyliczający, który iteruje po kolekcji.

IList<String>.IndexOf(String)

Zwraca indeks oparty na zerze pierwszego wystąpienia elementu w elemencie StringValues.

IList<String>.Insert(Int32, String)

Wstawia element do IList<T> obiektu w określonym indeksie.

IList<String>.Item[Int32]

Pobiera indeks String .

IList<String>.RemoveAt(Int32)

Usuwa IList<T> element w określonym indeksie.

Metody rozszerzania

AsReadOnly<T>(IList<T>)

Zwraca otokę tylko do ReadOnlyCollection<T> odczytu dla określonej listy.

CopyToDataTable<T>(IEnumerable<T>)

Zwraca element DataTable zawierający kopie DataRow obiektów, biorąc pod uwagę obiekt wejściowy IEnumerable<T> , w którym parametr T ogólny to DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Kopiuje DataRow obiekty do określonego DataTableobiektu , podanego obiektu wejściowego IEnumerable<T> , w którym parametr T ogólny to DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Kopiuje DataRow obiekty do określonego DataTableobiektu , podanego obiektu wejściowego IEnumerable<T> , w którym parametr T ogólny to DataRow.

Dotyczy