IWorkspaceExtensionControl Interface

Provides access to members that manage the life of a workspace extension.

Members

Name Description
Method Init Initializes the extension, passing in a reference to its workspace helper.
Method Shutdown Informs the extension that its workspace helper (and workspace) are going away.

IWorkspaceExtensionControl.Init Method

Initializes the extension, passing in a reference to its workspace helper.

Public Sub Init ( _
    ByVal WorkspaceHelper As IWorkspaceHelper _
)
public void Init (
    IWorkspaceHelper WorkspaceHelper
);

IWorkspaceExtensionControl.Shutdown Method

Informs the extension that its workspace helper (and workspace) are going away.

Public Sub Shutdown ( _
)
public void Shutdown (
);

Remarks

The Shutdown method informs the workspace extension that the workspace has been released by all clients and is about to go away. In response, the workspace extension should release its reference on the workspace helper. Any subsequent calls by the application to the workspace extension should return an error.

Classes that implement IWorkspaceExtensionControl

Classes Description
WorkspaceExtension Workspace Extension Object.

Remarks

IWorkspaceExtensionControlis a mandatory interface that must be supported by all workspace extensions. This interface is used by the workspace to manage the lifetime of the workspace extension. The workspace cocreates the workspace extension and calls the Initmethod handing it back a reference to the workspace via the workspace helper argument. The workspace helper implements a weak reference on the workspace. The extension can keep a strong reference on the workspace helper (for example, in a member variable) but should not keep a strong reference on the workspace. Extensions should get the workspace from the workspace helper in order to make any method calls on the workspace and release the reference after making the method calls.

The Shutdownmethod informs the workspace extension that the workspace has been released by all clients and is about to go away. In response the workspace extension should release its reference on the workspace helper. Any subsequent calls by the application to the workspace extension should return an error.

The IWorkspaceExtensionControl interface does not need to be considered by developers working with network datasets.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close