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)


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.


Exception Condition

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


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


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


Supported in: 5, 4, 3


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