共用方式為


NetTcpRelayBinding Constructors

Definition

Overloads

NetTcpRelayBinding()

Initializes a new instance of the NetTcpRelayBinding class.

NetTcpRelayBinding(String)

Initializes a new instance of the NetTcpRelayBinding class with a specified XML configuration.

NetTcpRelayBinding(EndToEndSecurityMode, RelayClientAuthenticationType)

Initializes a new instance of the NetTcpRelayBinding class with the type of security used and relay client authentication specified.

NetTcpRelayBinding(EndToEndSecurityMode, RelayClientAuthenticationType, Boolean)

Initializes a new instance of the NetTcpRelayBinding class with the type of security used, the type of client authentication, and a value that indicates whether reliable sessions are explicitly enabled.

NetTcpRelayBinding(TcpRelayTransportBindingElement, BinaryMessageEncodingBindingElement, ReliableSessionBindingElement, NetTcpRelaySecurity)

Initializes a new instance of the NetTcpRelayBinding class with the given transport, encoder, reliable session binding element and type of security used.

NetTcpRelayBinding()

Initializes a new instance of the NetTcpRelayBinding class.

public NetTcpRelayBinding ();
Public Sub New ()

Applies to

NetTcpRelayBinding(String)

Initializes a new instance of the NetTcpRelayBinding class with a specified XML configuration.

public NetTcpRelayBinding (string configurationName);
new Microsoft.ServiceBus.NetTcpRelayBinding : string -> Microsoft.ServiceBus.NetTcpRelayBinding
Public Sub New (configurationName As String)

Parameters

configurationName
String

The configuration to use.

Applies to

NetTcpRelayBinding(EndToEndSecurityMode, RelayClientAuthenticationType)

Initializes a new instance of the NetTcpRelayBinding class with the type of security used and relay client authentication specified.

public NetTcpRelayBinding (Microsoft.ServiceBus.EndToEndSecurityMode securityMode, Microsoft.ServiceBus.RelayClientAuthenticationType relayClientAuthenticationType);
new Microsoft.ServiceBus.NetTcpRelayBinding : Microsoft.ServiceBus.EndToEndSecurityMode * Microsoft.ServiceBus.RelayClientAuthenticationType -> Microsoft.ServiceBus.NetTcpRelayBinding
Public Sub New (securityMode As EndToEndSecurityMode, relayClientAuthenticationType As RelayClientAuthenticationType)

Parameters

securityMode
EndToEndSecurityMode

The type of security used with the binding.

relayClientAuthenticationType
RelayClientAuthenticationType

The type of client authentication used on the relay.

Applies to

NetTcpRelayBinding(EndToEndSecurityMode, RelayClientAuthenticationType, Boolean)

Initializes a new instance of the NetTcpRelayBinding class with the type of security used, the type of client authentication, and a value that indicates whether reliable sessions are explicitly enabled.

public NetTcpRelayBinding (Microsoft.ServiceBus.EndToEndSecurityMode securityMode, Microsoft.ServiceBus.RelayClientAuthenticationType relayClientAuthenticationType, bool reliableSessionEnabled);
new Microsoft.ServiceBus.NetTcpRelayBinding : Microsoft.ServiceBus.EndToEndSecurityMode * Microsoft.ServiceBus.RelayClientAuthenticationType * bool -> Microsoft.ServiceBus.NetTcpRelayBinding
Public Sub New (securityMode As EndToEndSecurityMode, relayClientAuthenticationType As RelayClientAuthenticationType, reliableSessionEnabled As Boolean)

Parameters

securityMode
EndToEndSecurityMode

The type of security used with the Azure Service Bus binding.

relayClientAuthenticationType
RelayClientAuthenticationType

The type of client authentication used on the relay.

reliableSessionEnabled
Boolean

true if reliable sessions are enabled; otherwise, false.

Applies to

NetTcpRelayBinding(TcpRelayTransportBindingElement, BinaryMessageEncodingBindingElement, ReliableSessionBindingElement, NetTcpRelaySecurity)

Initializes a new instance of the NetTcpRelayBinding class with the given transport, encoder, reliable session binding element and type of security used.

protected NetTcpRelayBinding (Microsoft.ServiceBus.TcpRelayTransportBindingElement transport, System.ServiceModel.Channels.BinaryMessageEncodingBindingElement encoding, System.ServiceModel.Channels.ReliableSessionBindingElement session, Microsoft.ServiceBus.NetTcpRelaySecurity security);
new Microsoft.ServiceBus.NetTcpRelayBinding : Microsoft.ServiceBus.TcpRelayTransportBindingElement * System.ServiceModel.Channels.BinaryMessageEncodingBindingElement * System.ServiceModel.Channels.ReliableSessionBindingElement * Microsoft.ServiceBus.NetTcpRelaySecurity -> Microsoft.ServiceBus.NetTcpRelayBinding
Protected Sub New (transport As TcpRelayTransportBindingElement, encoding As BinaryMessageEncodingBindingElement, session As ReliableSessionBindingElement, security As NetTcpRelaySecurity)

Parameters

transport
TcpRelayTransportBindingElement

The transport binding element to use.

encoding
BinaryMessageEncodingBindingElement

The encoding to use.

session
ReliableSessionBindingElement

The reliable session binding element.

security
NetTcpRelaySecurity

The security binding element.

Applies to