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


IDataServerManager.AvailableMemory Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (DataSourcesGDB)  

IDataServerManager.AvailableMemory Property

The total available memory (MB).

[Visual Basic .NET]
Public ReadOnly Property AvailableMemory As Integer
[C#]
public int AvailableMemory {get;}
[C++]
HRESULT get_AvailableMemory(
  long* memory
);
[C++]

Parameters memory [out, retval] memory is a parameter of type long

Product Availability

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

Remarks

This function returns the available physical RAM on the database server.  This is the total memory that is available to the database server, including memory that may already be in use, either by the database server or other applications.

[C#]

// The following code example demonstrates how to extablish a connection to a database server in order
// to retrieve some of the standard properties
public void esriDataSourcesGDB__IDataServerManager_DisplayProperties()
{
    // Create a Data Server Manager object
    IDataServerManager dataserverManager=new DataServerManagerClass();
    dataserverManager.ServerName="minnie\\sqlexpress";
    dataserverManager.Connect();

    // Display some of the standard properties
    Console.WriteLine("AvailableMemory : " + dataserverManager.AvailableMemory);
    Console.WriteLine("DataServerType : " + dataserverManager.DataServerType);
    Console.WriteLine("IsConnected : " + dataserverManager.IsConnected);
    Console.WriteLine("ProductName : " + dataserverManager.ProductName);
    Console.WriteLine("ProductVersion : " + dataserverManager.ProductVersion);
    Console.WriteLine("DataServerClass : " + dataserverManager.DataServerClass);
}

See Also

IDataServerManager Interface