Share via


DomainAcquirer.OnLeaveDomain Method

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

Overridden in a derived class to implement manual leave domain operations.

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

Syntax

'Declaration
Protected Overridable Sub OnLeaveDomain ( _
    leaveChallenge As Stream, _
    domainServerUri As Uri _
)
protected virtual void OnLeaveDomain(
    Stream leaveChallenge,
    Uri domainServerUri
)

Parameters

  • leaveChallenge
    Type: System.IO.Stream
    The domain challenge that needs to be sent to the PlayReady server.
  • domainServerUri
    Type: System.Uri
    URI to the domain controller server which is used to manage domains.

Remarks

This method allows authentication information to be added to a Leave Domain operation. It can also be used for extended error handling by looking at the raw responses from the domain server.

Notes to Inheritors

When overriding OnLeaveDomain in a derived class, the base class's OnLeaveDomain method should only be called when an automatic domain join is desired. If the application is performing a manual operation, then you must not call the base class's OnLeaveDomain method.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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