Поделиться через


HttpsTransportBindingElement Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents the binding element used to specify an HTTPS transport for transmitting messages.

Inheritance Hierarchy

System.Object
  System.ServiceModel.Channels.BindingElement
    System.ServiceModel.Channels.TransportBindingElement
      System.ServiceModel.Channels.HttpTransportBindingElement
        System.ServiceModel.Channels.HttpsTransportBindingElement

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Syntax

'Declaration
Public Class HttpsTransportBindingElement _
    Inherits HttpTransportBindingElement
public class HttpsTransportBindingElement : HttpTransportBindingElement

The HttpsTransportBindingElement type exposes the following members.

Constructors

  Name Description
Public methodSupported by Silverlight for Windows Phone HttpsTransportBindingElement() Initializes a new instance of the HttpsTransportBindingElement class.
Protected methodSupported by Silverlight for Windows Phone HttpsTransportBindingElement(HttpsTransportBindingElement) Initializes a new instance of the HttpsTransportBindingElement class.

Top

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone ManualAddressing Gets or sets a value that indicates whether manual addressing of the message is required. (Inherited from TransportBindingElement.)
Public propertySupported by Silverlight for Windows Phone MaxBufferSize Gets or sets the maximum size of the buffer to use. For buffered messages this value is the same as MaxReceivedMessageSize. For streamed messages, this value is the maximum size of the SOAP headers, which must be read in buffered mode. (Inherited from HttpTransportBindingElement.)
Public propertySupported by Silverlight for Windows Phone MaxReceivedMessageSize Gets and sets the maximum allowable message size that can be received. (Inherited from TransportBindingElement.)
Public propertySupported by Silverlight for Windows Phone Scheme Returns the URI scheme for the transport. (Overrides HttpTransportBindingElement.Scheme.)
Public property TransferMode Gets or sets a value that indicates whether messages are sent buffered or streamed. (Inherited from HttpTransportBindingElement.)

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone BuildChannelFactory<TChannel> Creates a channel factory of a specified type that can be used to create a channel. (Overrides HttpTransportBindingElement.BuildChannelFactory<TChannel>(BindingContext).)
Public methodSupported by Silverlight for Windows Phone CanBuildChannelFactory<TChannel> Determines whether a channel factory of the specified type can be built. (Inherited from HttpTransportBindingElement.)
Public methodSupported by Silverlight for Windows Phone Clone Creates a copy of the current binding element. (Overrides HttpTransportBindingElement.Clone().)
Public methodSupported by Silverlight for Windows Phone Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetProperty<T> Gets a property from the specified BindingContext. (Inherited from HttpTransportBindingElement.)

In Silverlight for Windows Phone, this member is overridden by GetProperty<T>(BindingContext).

In XNA Framework, this member is overridden by GetProperty<T>(BindingContext).
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The HttpsTransportBindingElement class is the starting point for creating a custom binding that implements the HTTPS transport protocol. HTTPS is the primary transport used for secure interoperability purposes. HTTPS is supported by the Silverlight 5 to ensure interoperability with other Web services stacks.

You control the configuration of the factories that this class creates by setting its properties, such as: RequireClientCertificate.

You can also set properties on the base class, HttpTransportBindingElement such as MaxBufferSize.

You can also set properties on the base class TransportBindingElement, such as: ManualAddressing, and MaxBufferPoolSize. For a complete list of properties, see TransportBindingElement.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

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.