ZennoLab Assemblies Documentation
HTTPAccept Property
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel.Collections Namespace > IProfile Interface : HTTPAccept Property

Glossary Item Box

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";
PHPCopy 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

© 2013 All Rights Reserved.