IWorkspaceExtensionManager Interface

Provides access to members that manage a workspace extension.

Members

Name Description
Read-only property Extension The workspace extension at this index.
Read-only property ExtensionCount The number of workspace extensions.
Method FindExtension Finds the specified workspace extension by its globally unique id.
Method RegisterExtension Registers this workspace extension with the database making it required for successful connection to this database.
Method UnRegisterExtension UnRegisters this workspace extension making it no longer required for successful connection to this database.

IWorkspaceExtensionManager.Extension Property

The workspace extension at this index.

Public Function get_Extension ( _
    ByVal Index As Integer _
) As IWorkspaceExtension
public IWorkspaceExtension get_Extension (
    int Index
);

IWorkspaceExtensionManager.ExtensionCount Property

The number of workspace extensions.

Public ReadOnly Property ExtensionCount As Integer
public int ExtensionCount {get;}

IWorkspaceExtensionManager.FindExtension Method

Finds the specified workspace extension by its globally unique id.

Public Function FindExtension ( _
    ByVal GUID As UID _
) As IWorkspaceExtension
public IWorkspaceExtension FindExtension (
    UID GUID
);

IWorkspaceExtensionManager.RegisterExtension Method

Registers this workspace extension with the database making it required for successful connection to this database.

Public Sub RegisterExtension ( _
    ByVal Name As String, _
    ByVal GUID As UID _
)
public void RegisterExtension (
    string Name,
    UID GUID
);

IWorkspaceExtensionManager.UnRegisterExtension Method

UnRegisters this workspace extension making it no longer required for successful connection to this database.

Public Sub UnRegisterExtension ( _
    ByVal GUID As UID _
)
public void UnRegisterExtension (
    UID GUID
);

Classes that implement IWorkspaceExtensionManager

Classes Description
Workspace Workspace Object.

Remarks

IWorkspaceExtensionManageris an optional interface supported by Personal, File and ArcSDE geodatabase workspaces. The FindExtensionmethod returns a reference to a workspace extension given its GUID. An application can also discover and iterate over all extensions using the ExtensionCountand Extensionproperties.

The following code demonstrates how to get a reference to the IWorkspaceExtensionManager in order to access the IDatasetContainer2.  The end result of which could be to create a network dataset or find a pre-existing network dataset.  The code assumes you have a reference to the workspace (workspace) in which the network dataset will be created or exists.  The workspace could also correspond to the folder containing a shapefile network dataset or SDC data.

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