This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Interfaces > ID > IDataServerManager Interface > IDataServerManager.ServerName Property (ArcObjects .NET 10.4 SDK) |
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(
BSTR ServerName
);
[C++]
Parameters ServerName [out, retval] ServerName is a parameter of type BSTR ServerName [in] ServerName is a parameter of type BSTR
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.