DatabaseProvider.GetDatabaseHostName Method
IIS 7.0
Returns the host name of the computer where the database in the connection string is located.
Assembly: Microsoft.Web.Management.DatabaseManager (in Microsoft.Web.Management.DatabaseManager.dll)
Parameters
- connectionString
- Type: System.String
The connection string for the database connection.
Return Value
Type: System.StringA string that contains the host name for the computer where the database is located.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.