Class PipelineResponseHeaders
A collection of HTTP response headers and their values.
Inheritance
Namespace: System.Dynamic.ExpandoObject
Assembly: System.ClientModel.dll
Syntax
[System.Runtime.CompilerServices.Nullable(0)]
[System.Runtime.CompilerServices.NullableContext(1)]
public abstract class PipelineResponseHeaders : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>>
Constructors
PipelineResponseHeaders()
Declaration
protected PipelineResponseHeaders ();
Methods
GetEnumerator()
Gets an enumerator that iterates through the PipelineResponseHeaders.
Declaration
public abstract System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string,string>> GetEnumerator ();
Returns
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String,System.String>>
An enumerator that iterates through the PipelineResponseHeaders. |
TryGetValue(String, String)
Attempts to retrieve the value associated with the specified header name.
Declaration
public abstract bool TryGetValue (string name, out string value);
Parameters
System.String
name
The name of the header to retrieve. |
System.String
value
The specified header value. |
Returns
System.Boolean
|
TryGetValues(String, IEnumerable<String>)
Attempts to retrieve the values associated with the specified header name.
Declaration
public abstract bool TryGetValues (string name, out System.Collections.Generic.IEnumerable<string> values);
Parameters
System.String
name
The name of the header to retrieve. |
System.Collections.Generic.IEnumerable<System.String>
values
The specified header values. |
Returns
System.Boolean
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
Returns
System.Collections.IEnumerator
An System.Collections.IEnumerator object that can be used to iterate through the collection. |