HttpMethodHeaderValueCollection Klasse

Definition

Stellt den Wert des HTTP-Headers zulassen für eine HTTP-Antwort dar.

public ref class HttpMethodHeaderValueCollection sealed : IIterable<HttpMethod ^>, IVector<HttpMethod ^>, IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpMethodHeaderValueCollection final : IIterable<HttpMethod>, IVector<HttpMethod>, IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class HttpMethodHeaderValueCollection final : IIterable<HttpMethod>, IVector<HttpMethod>, IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpMethodHeaderValueCollection : IEnumerable<HttpMethod>, IList<HttpMethod>, IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class HttpMethodHeaderValueCollection : IEnumerable<HttpMethod>, IList<HttpMethod>, IStringable
Public NotInheritable Class HttpMethodHeaderValueCollection
Implements IEnumerable(Of HttpMethod), IList(Of HttpMethod), IStringable
Vererbung
Object Platform::Object IInspectable HttpMethodHeaderValueCollection
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Die HttpMethodHeaderValueCollection-Klasse stellt den HTTP-Header allow für eine HTTP-Antwort dar.

Die Allow-Eigenschaft für die HttpResponseHeaderCollection gibt ein HttpMethodHeaderValueCollection-Objekt zurück.

Eigenschaften

Size

Ruft die Anzahl der HttpMethod-Objekte in der Auflistung ab.

Methoden

Append(HttpMethod)

Fügt am Ende der Auflistung ein neues HttpMethod-Element hinzu.

Clear()

Entfernt alle Objekte aus der Auflistung.

First()

Ruft einen Iterator für das erste HttpMethod-Element in der Auflistung ab.

GetAt(UInt32)

Gibt die HttpMethod am angegebenen Index in der Auflistung zurück.

GetMany(UInt32, HttpMethod[])

Ruft die HttpMethod-Elemente ab, die am angegebenen Index in der Auflistung beginnen.

GetView()

Gibt eine unveränderliche Ansicht der HttpMethodHeaderValueCollection zurück.

IndexOf(HttpMethod, UInt32)

Ruft den Index einer HttpMethod in der Auflistung ab.

InsertAt(UInt32, HttpMethod)

Fügt eine HttpMethod-Methode am angegebenen Index in die Auflistung ein.

ParseAdd(String)

Analysiert und fügt der HttpMethodHeaderValueCollection einen Eintrag hinzu.

RemoveAt(UInt32)

Entfernt den Eintrag am angegebenen Index aus der HttpMethodHeaderValueCollection.

RemoveAtEnd()

Entfernt das letzte HttpMethod-Element aus der Auflistung.

ReplaceAll(HttpMethod[])

Ersetzt alle HttpMethod-Elemente in der Auflistung durch die angegebenen HttpMethod-Elemente .

SetAt(UInt32, HttpMethod)

Legt die HttpMethod auf den angegebenen Index in der Auflistung fest.

ToString()

Gibt eine Zeichenfolge zurück, die das aktuelle HttpMethodHeaderValueCollection-Objekt darstellt.

TryParseAdd(String)

Versucht, das angegebene Element zu analysieren und der HttpMethodHeaderValueCollection hinzuzufügen.

Gilt für:

Weitere Informationen