Bagikan melalui


AdControl.Close Method

Definition

Frees associated system resources used by the control.

public:
 virtual void Close() = Close;
void Close();
// This member is not implemented in C#
function close()
' This member is not implemented in VB.NET

Implements

M:Windows.Foundation.IClosable.Close M:System.IDisposable.Close

Remarks

In general, the Windows runtime will handle disposal of the ad control and therefore most applications will not call Close or Dispose. However, if you programmatically remove the ad control from a page then you must call Close or Dispose yourself since the runtime will not find your ad control when it performs its page cleanup.

Note

Do not remove the remove the div element containing the ad control from the DOM prior to calling Close or Dispose.

Applies to