Share via


QueryRuleGroupMembersCollection.Item property (Guid)

Gets a member query rule by its Id.

Namespace:  Microsoft.Office.Server.Search.Query.Rules
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    id As Guid _
) As QueryRule
    Get
'Usage
Dim instance As QueryRuleGroupMembersCollection
Dim id As Guid
Dim value As QueryRule

value = instance(id)
public QueryRule this[
    Guid id
] { get; }

Parameters

Property value

Type: Microsoft.Office.Server.Search.Query.Rules.QueryRule

Exceptions

Exception Condition
[!:System.KeyNotFoundException]

Thrown when the query rule doesn't exist in the collection

See also

Reference

QueryRuleGroupMembersCollection class

QueryRuleGroupMembersCollection members

Item overload

Microsoft.Office.Server.Search.Query.Rules namespace