AdControl.Close Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.