Gets or sets the content types that are acceptable.
Syntax
| C# | |
|---|
string HTTPAccept {get; set;} |
Property Value
Type: System.String
The content types that are acceptable of profile.
Example
The following example uses property
HTTPAccept of profile.
| C# | Copy Code |
|---|
// get content types that are acceptable
string HTTPAccept = project.Profile.HTTPAccept;
// set acceptable languages for response
project.Profile.HTTPAccept = "text/plain"; |
| PHP | Copy Code |
|---|
// get content types that are acceptable
$HTTPAccept = $project->Profile->HTTPAccept;
// set acceptable languages for response
$project->Profile->HTTPAccept = "text/plain"; |
Requirements
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven
See Also