AFDatabases.DefaultDatabase Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This property returns an AFDatabase object that represents the
default database configured in the SDK.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFDatabase DefaultDatabase { get; set; }
Public Property DefaultDatabase As AFDatabase Get Set Dim instance As AFDatabases Dim value As AFDatabase value = instance.DefaultDatabase instance.DefaultDatabase = value
public: property AFDatabase^ DefaultDatabase { AFDatabase^ get (); void set (AFDatabase^ value); }
member DefaultDatabase : AFDatabase with get, set
Property Value
Type: AFDatabaseThe AFDatabase object that represents the default database configured in the SDK.
Remarks
This property returns the default AFDatabase. Use this property to
allow a program access to a database when you do not know the database name or want
to avoid searching the Databases collection for a specific database.