WSHttpSecurity.Transport Eigenschap

Definitie

Hiermee haalt u een object op dat de beveiligingsinstellingen op transportniveau voor deze binding bevat.

public:
 property System::ServiceModel::HttpTransportSecurity ^ Transport { System::ServiceModel::HttpTransportSecurity ^ get(); };
public:
 property System::ServiceModel::HttpTransportSecurity ^ Transport { System::ServiceModel::HttpTransportSecurity ^ get(); void set(System::ServiceModel::HttpTransportSecurity ^ value); };
public System.ServiceModel.HttpTransportSecurity Transport { get; }
public System.ServiceModel.HttpTransportSecurity Transport { get; set; }
member this.Transport : System.ServiceModel.HttpTransportSecurity
member this.Transport : System.ServiceModel.HttpTransportSecurity with get, set
Public ReadOnly Property Transport As HttpTransportSecurity
Public Property Transport As HttpTransportSecurity

Waarde van eigenschap

De HttpTransportSecurity voor deze binding.

De standaardwaarde bevat een ClientCredentialType van Windows en een ProxyCredentialType van None.

Voorbeelden

Met de volgende code wordt het clientreferentietype ingesteld op Windows.

// The code uses a shortcut to specify the security mode to Transport.
WSHttpBinding b = new WSHttpBinding(SecurityMode.Transport);
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;
' The code uses a shortcut to specify the security mode to Transport.
Dim b As WSHttpBinding = new WSHttpBinding(SecurityMode.Transport)
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows

Opmerkingen

U kunt het object dat door deze eigenschap wordt geretourneerd, gebruiken om de transportbeveiligingsinstellingen voor de binding in te stellen.

Van toepassing op