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


IVersionedWorkspace.DefaultVersion Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IVersionedWorkspace.DefaultVersion Property

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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.

See Also

IVersionedWorkspace Interface