This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Interfaces > ID > IDataServerManager Interface > IDataServerManager.AvailableMemory Property (ArcObjects .NET 10.4 SDK) |
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
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.
// 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);
}