AcceptTypes Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets the MIME types accepted by the client.
Namespace: System.Net
Assembly: System.Http (in System.Http.dll)
Syntax
'Declaration
Public ReadOnly Property AcceptTypes As String()
public string[] AcceptTypes { get; }
public:
property array<String^>^ AcceptTypes {
array<String^>^ get ();
}
member AcceptTypes : string[] with get
function get AcceptTypes () : String[]
Property Value
Type: array<System. . :: . .String> [] () [] []
A String array that contains the type names specified in the request's Accept header or nullNothingnullptrunita null reference (Nothing in Visual Basic) if the client request did not include an Accept header.
Remarks
The Accept header is a string of space-separated Multipurpose Internet Mail Extensions (MIME) type names (for example, image/jpeg), which indicate the MIME types that the client is prepared to accept and process in a response. The */* entry indicates that the client accepts any MIME type. For a detailed description of the Accept header, see RFC 2616, available at http://www.rfc-editor.org.
For a complete list of request headers, see the HttpRequestHeader enumeration.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.