Component.ServerName property

This property gives the name of the server where the search component resides. When trying to set the ServerName, the server name is looked up to ensure it refers to a valid server in the farm.

Namespace:  Microsoft.Office.Server.Search.Administration.Topology
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Property ServerName As String
    Get
    Friend Set
'Usage
Dim instance As Component
Dim value As String

value = instance.ServerName
public string ServerName { get; internal set; }

Property value

Type: System.String

Implements

ISearchComponent.ServerName

Remarks

Throws an InvalidTopologyException if the server with ServerName could not be found in the local SharePoint farm.

See also

Reference

Component class

Component members

Microsoft.Office.Server.Search.Administration.Topology namespace