MVCRESTSilverLight 之 HttpConfiguration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The configuration class for Http Services

Inheritance Hierarchy

System..::..Object
  Microsoft.ApplicationServer.Http..::..HttpConfiguration
    Microsoft.ApplicationServer.Http..::..WebApiConfiguration

Namespace:  Microsoft.ApplicationServer.Http
Assembly:  Microsoft.ApplicationServer.Http (in Microsoft.ApplicationServer.Http.dll)

Syntax

Visual Basic (Declaration)

Public Class HttpConfiguration

 

Visual Basic (Usage)

Dim instance As HttpConfiguration

 

C#

public class HttpConfiguration

 

Visual C++

public ref class HttpConfiguration

 

F#

type HttpConfiguration = class end

 

JScript

public class HttpConfiguration

The HttpConfiguration type exposes the following members.

Constructors

   

Name

Description

HttpConfiguration

Initializes a new instance of the HttpConfiguration class.

Top

Properties

   

Name

Description

CreateInstance

 

EnableHelpPage

Gets or sets a value indicating whether to enable help page.

EnableTestClient

Gets or sets a value indicating whether to enable test client.

ErrorHandlers

 

Formatters

Gets the media type formatters.

IncludeExceptionDetail

Gets or sets a value indicating whether to include exception detail.

MaxBufferSize

Gets or sets the size of the max buffer.

MaxReceivedMessageSize

Gets or sets the size of the max received message.

MessageHandlerFactory

 

MessageHandlers

 

ReleaseInstance

 

RequestHandlers

 

ResponseHandlers

 

Security

 

TrailingSlashMode

Gets or sets the trailing slash mode.

TransferMode

Gets or sets the transfer mode.

Top

Methods

   

Name

Description

Equals

(Inherited from Object.)

Finalize

(Inherited from Object.)

GetHashCode

(Inherited from Object.)

GetType

(Inherited from Object.)

MemberwiseClone

(Inherited from Object.)

OnConfigureEndpoint

Called to apply the configuration on the endpoint level.

OnConfigureServiceHost

Called to apply the configuration on the host level.

ToString

(Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.ApplicationServer.Http Namespace

Send feedback on this topic to Microsoft.

© 2011 Microsoft Corporation. All rights reserved.

 
 
作者:易简.道    
 
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/xyicheng/p/2361908.html