Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFDatabases.DefaultDatabase Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDatabases.DefaultDatabase Property
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: AFDatabase
The 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.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in