This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IV > IVersionedWorkspace Interface > IVersionedWorkspace.DefaultVersion Property (ArcObjects .NET 10.5 SDK) |
The Default version.
[Visual Basic .NET] Public ReadOnly Property DefaultVersion As IVersion
[C#] public IVersion DefaultVersion {get;}
[C++]
HRESULT get_DefaultVersion(
IVersion** DefaultVersion
);
[C++]
Parameters DefaultVersion [out, retval]
DefaultVersion is a parameter of type IVersion
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.