Skip to content
Docs Try Aspire
Docs Try

DocumentDBVersions Properties

Class Properties 2 members
String constants and lookup helpers for the DocumentDB versions known to this build of the package.
All Section titled All static IReadOnlyList<string>
All DocumentDB versions known to this build of the package, sorted ascending by numeric semantic version. The order of this list is part of the contract: All[All.Count - 1] is always the newest known version.
public static IReadOnlyList<string> All { get; }
The returned instance is a read-only wrapper that cannot be downcast to a mutable array. This protects DocumentDBVersions.Latest (which reads from this list) from being silently changed at runtime.
Latest Section titled Latest static string
The newest DocumentDB version known to this build of the package. This is the version applied by default when no explicit version is selected via DocumentDBBuilderExtensions.WithDocumentDBVersion.
public static string Latest { get; }
This value reflects the latest version this package was built against, not the latest upstream release at runtime. Upgrade the NuGet package to pick up newer upstream versions. Exposed as a property so consumers re-resolve it after upgrading the package, rather than inlining the value at compile time as a const would do.