This document is archived and information here might be outdated.  Recommended version.


IARControl.UnloadDocument Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARControl Interface > IARControl.UnloadDocument Method
ArcGIS Developer Help

IARControl.UnloadDocument Method

Unloads the currently loaded Published Map File (*.PMF) from the control.

[Visual Basic .NET]
Public Sub UnloadDocument ( _
)
[C#]
public void UnloadDocument (
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

The UnloadDocument method removes the currently loaded PMF document from the ArcReaderControl and causes the DocumentFilename property to update itself with an empty string. At this point the ArcReaderControl is empty.

Errors Returned

2003 800A07D3: No document loaded

Remarks

The UnloadDocument method triggers the following events:

OnDocumentUnloaded
OnCurrentViewChanged

See Also

IARControl Interface