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


IDataServerManager.ProductName Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Interfaces > ID > IDataServerManager Interface > IDataServerManager.ProductName Property
ArcGIS Developer Help

IDataServerManager.ProductName Property

The product name.

[Visual Basic .NET]
Public ReadOnly Property ProductName As String
[C#]
public string ProductName {get;}
[C++]
HRESULT get_ProductName(
  System.String* name
);
[C++]
Parameters
name [out, retval]

name is a parameter of type BSTR*

Product Availability

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

Remarks

This method returns the product name for the underlying database server.  For example; �Microsoft SQL Server Express Edition�.

[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