MessagePropertyFilter.EncryptionAlgorithm Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
bir iletiyi alırken veya göz atarken özellik bilgilerinin alınıp alınmayacağını EncryptionAlgorithm belirten bir değer alır veya ayarlar.
public:
property bool EncryptionAlgorithm { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgEncryptionAlgorithm")]
public bool EncryptionAlgorithm { get; set; }
[<System.Messaging.MessagingDescription("MsgEncryptionAlgorithm")>]
member this.EncryptionAlgorithm : bool with get, set
Public Property EncryptionAlgorithm As Boolean
Özellik Değeri
true bilgilerini almak EncryptionAlgorithm için; aksi takdirde , false. Varsayılan değer: false.
- Öznitelikler
Örnekler
Aşağıdaki kod örneği özelliğinin EncryptionAlgorithm kullanımını gösterir.
// Set the queue's MessageReadPropertyFilter property
// to enable the message's EncryptionAlgorithm property.
queue->MessageReadPropertyFilter->
EncryptionAlgorithm = true;
// Peek at the message. Time out after ten seconds
// in case the message was not delivered.
orderMessage = queue->Peek(TimeSpan::FromSeconds(10.0));
// Display the value of the message's
// EncryptionAlgorithm property.
Console::WriteLine("Message.EncryptionAlgorithm: {0}",
orderMessage->EncryptionAlgorithm);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's EncryptionAlgorithm property.
queue.MessageReadPropertyFilter.EncryptionAlgorithm = true;
// Peek at the message. Time out after ten seconds in case the message
// was not delivered.
orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0));
// Display the value of the message's EncryptionAlgorithm property.
Console.WriteLine("Message.EncryptionAlgorithm: {0}",
orderMessage.EncryptionAlgorithm);
Açıklamalar
Bir ileti özelse, ileti gönderilmeden önce şifrelenir ve alındığında şifresi çözülür. EncryptionAlgorithm sınıfının özelliğiMessage, özel iletinin ileti gövdesini şifrelemek için kullanılan algoritmayı belirtir.