SslStream.IsEncrypted Eigenschaft

Definition

Ruft einen Boolean-Wert ab, der angibt, ob dieser SslStream verschlüsselte Daten verwendet.Gets a Boolean value that indicates whether this SslStream uses data encryption.

public:
 virtual property bool IsEncrypted { bool get(); };
public override bool IsEncrypted { get; }
member this.IsEncrypted : bool
Public Overrides ReadOnly Property IsEncrypted As Boolean

Eigenschaftswert

true, wenn Daten vor der Netzwerkübertragung verschlüsselt und am Remoteendpunkt entschlüsselt werden, andernfalls false.true if data is encrypted before being transmitted over the network and decrypted when it reaches the remote endpoint; otherwise false.

Implementiert

Mono.Net.Security.IMonoSslStream.IsEncrypted

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie der Wert dieser Eigenschaft angezeigt wird.The following code example demonstrates displaying the value of this property.

static void DisplaySecurityServices( SslStream^ stream )
{
   Console::WriteLine( L"Is authenticated: {0} as server? {1}", stream->IsAuthenticated, stream->IsServer );
   Console::WriteLine( L"IsSigned: {0}", stream->IsSigned );
   Console::WriteLine( L"Is Encrypted: {0}", stream->IsEncrypted );
}


static void DisplaySecurityServices(SslStream stream)
{
   Console.WriteLine("Is authenticated: {0} as server? {1}", stream.IsAuthenticated, stream.IsServer);
   Console.WriteLine("IsSigned: {0}", stream.IsSigned);
   Console.WriteLine("Is Encrypted: {0}", stream.IsEncrypted);
}
Private Shared Sub DisplaySecurityServices(stream As SslStream)
    Console.WriteLine("Is authenticated: {0} as server? {1}", stream.IsAuthenticated, stream.IsServer)
    Console.WriteLine("IsSigned: {0}", stream.IsSigned)
    Console.WriteLine("Is Encrypted: {0}", stream.IsEncrypted)
End Sub

Hinweise

Mithilfe der Verschlüsselung können Sie den Datenschutz der Daten schützen. Dadurch wird sichergestellt, dass die Daten während der Übertragung von Drittanbietern nicht verschlüsselt werden können.Encryption helps to protect the privacy of the data, namely it helps to ensure that while data is in transit, it cannot be deciphered by third parties.

Gilt für: