HostDistributionRuleCollection.Item Property
Gets the HostDistributionRule with the specified host name.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
hostName As String _
) As HostDistributionRule
Get
'Usage
Dim instance As HostDistributionRuleCollection
Dim hostName As String
Dim value As HostDistributionRule
value = instance(hostName)
public HostDistributionRule this[
string hostName
] { get; }
Parameters
hostName
Type: System.StringThe host name of the HostDistributionRule to return.
Property Value
Type: Microsoft.Office.Server.Search.Administration.HostDistributionRule
The rule associated with the specified host name.
Exceptions
Exception | Condition |
---|---|
KeyNotFoundException | The rule associated with the specified host name is not found in the collection. |
See Also
Reference
HostDistributionRuleCollection Class