Interface IVersionedWorkspace
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that manage versions.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("1B256191-B380-11D1-9CE6-0000F8780619")]
public interface IVersionedWorkspace
Properties
DefaultVersion
The Default version.
IVersion DefaultVersion { get; }
Property Value
Remarks
The DEFAULT version is always owned by the ArcSDE administrative user. The version is required by the geodatabase and its access property should remain public or protected.
If it is the application developer's goal to obtain a reference to the DEFAULT version, it is recommended to use the DefaultVersion property as opposed to passing in a literal string to FindVersion method. The DefaultVersion method will always return a IVersion object referencing the default version of the workspace from which the name can be obtained through VersionName property on the IVersionInfo interface.
DescendantVersions[string, bool]
A list of descendant versions of a version that can be sorted to optimize reconcile and post.
IEnumVersionInfo DescendantVersions[string Version, bool orderForReconcileAndPost] { get; }
Parameters
Property Value
ParentVersions
A list of versions that have child versions.
IEnumVersionInfo ParentVersions { get; }
Property Value
RecommendedReconcileOrder
An ordered list of versions that can be used to optimize reconciliation against the default version.
IEnumVersionInfo RecommendedReconcileOrder { get; }
Property Value
RecommendedSyncOrder
An ordered list of replicas that need to be synchronized in order to optimize reconciliation against the default version.
IEnumBSTR RecommendedSyncOrder { get; }
Property Value
Versions
All versions the user owns and those which are public or protected.
IEnumVersionInfo Versions { get; }
Property Value
Remarks
The Versions method will return an enumeration of all versions which the connected user owns and versions owned by other users whose access property is "public".
Methods
Compress()
Compresses the database by removing states not referenced by a version.
void Compress()
Remarks
Versioned workspace compression is available using the Compress method. Compressing the versioned workspace will remove those database states not referenced by a version.
Only the ArcSDE administrator user can execute the compress method.
FindVersion(string)
Finds a specific version given it's name.
IVersion FindVersion(string Name)
Parameters
Namestring
Returns
Remarks
FindVersion returns an IVersion interface which is commonly used to read or set a version's properties. The interface requires a string as input. The value of the string is case sensitive and a version's owner should be prefixed as owner.version. If an owner is not specified, only the versions which the user is connected owns are searched.
If it is the application developer's goal to obtain a reference to the DEFAULT version, it is recommended to use the DefaultVersion property as opposed to passing in a literal string to FindVersion method. The DefaultVersion method will always return a IVersion object referencing the default version of the workspace from which the name can be obtained through VersionName property on the IVersionInfo interface.