ArcObjects Library Reference (DataSourcesGDB)  

IDataServerManager.DataServerType Property

The type of data server.

[Visual Basic .NET]
Public ReadOnly Property DataServerType As esriDataServerType
[C#]
public esriDataServerType DataServerType {get;}
[C++]
HRESULT get_DataServerType(
  esriDataServerType* type
);
[C++]

Parameters

type [out, retval]

  type is a parameter of type esriDataServerType

Product Availability

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

Description

This method returns the type of the database server (DataServerType).

[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