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


IDataServerManager.ServerName 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.ServerName Property
ArcGIS Developer Help

IDataServerManager.ServerName Property

The data server name.

[Visual Basic .NET]
Public Property ServerName As String
[C#]
public string ServerName {get; set;}
[C++]
HRESULT get_ServerName(
  BSTR ServerName
);
[C++]
HRESULT put_ServerName(
  System.String* ServerName
);
[C++]
Parameters
ServerName [in]

ServerName is a parameter of type BSTR ServerName [out, retval]
ServerName is a parameter of type BSTR*

Product Availability

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

Remarks

The ServerName property is used to return or set the name of the server of the Data Server Manager, for example; �myserver\sqlexpress�.  The ServerName value is used with the CreateConnectionFile method.  Setting the ServerName property is one method for initializing the DataServerManager before connecting to the Database Server.

See Also

IDataServerManager Interface