Condividi tramite


LocalMessageReceiver.DisableSenderTrustCheck Property

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

Gets or sets a value that indicates whether the receiver can receive messages from a sender with a different Protected Mode setting.

Namespace:  System.Windows.Messaging
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property DisableSenderTrustCheck As Boolean
public bool DisableSenderTrustCheck { get; set; }

Property Value

Type: System.Boolean
true if the receiver can receive messages regardless of the sender's Protected Mode setting; otherwise, false.

Exceptions

Exception Condition
InvalidOperationException

When setting this property, the Listen method has already been called.

ObjectDisposedException

When setting this property, the Dispose method has already been called.

Remarks

Internet Explorer 7 for Windows Vista introduced a Protected Mode setting that provides additional security. By default, Protected Mode is enabled for the Internet and Restricted Sites security zones, and disabled otherwise.

Normally, Silverlight-based applications from zones with different Protected Mode settings cannot communicate through local messaging. However, you can bypass this restriction by setting DisableSenderTrustCheck to true. This is typically necessary, for example, to enable local messaging between out-of-browser and Internet-based Silverlight applications.

For more information, see Communication Between Local Silverlight-Based Applications.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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