Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

HttpRequestMessage.Properties Property

Definition

Namespace:
System.Net.Http
Assembly:
System.Net.Http.dll
Assemblies:
netstandard.dll, System.Net.Http.dll
Assembly:
netstandard.dll
Source:
HttpRequestMessage.cs
Source:
HttpRequestMessage.cs
Source:
HttpRequestMessage.cs
Source:
HttpRequestMessage.cs
Source:
HttpRequestMessage.cs

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.

Caution

HttpRequestMessage.Properties has been deprecated. Use Options instead.

Caution

Use Options instead.

Gets a set of properties for the HTTP request.

public:
 property System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ Properties { System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ get(); };
public System.Collections.Generic.IDictionary<string,object> Properties { get; }
[System.Obsolete("HttpRequestMessage.Properties has been deprecated. Use Options instead.")]
public System.Collections.Generic.IDictionary<string,object?> Properties { get; }
[System.Obsolete("Use Options instead.")]
public System.Collections.Generic.IDictionary<string,object?> Properties { get; }
member this.Properties : System.Collections.Generic.IDictionary<string, obj>
[<System.Obsolete("HttpRequestMessage.Properties has been deprecated. Use Options instead.")>]
member this.Properties : System.Collections.Generic.IDictionary<string, obj>
[<System.Obsolete("Use Options instead.")>]
member this.Properties : System.Collections.Generic.IDictionary<string, obj>
Public ReadOnly Property Properties As IDictionary(Of String, Object)

Property Value

Returns IDictionary<TKey,TValue>.

Attributes

Remarks

This property shares storage with the Options property. Using both at the same time may cause unexpected key collisions.

Applies to


Feedback

Was this page helpful?