Partager via


AlertCollection.Exists Method

Returns a Boolean value that indicates whether the specified search alert exists in the alert collection.

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

Syntax

'Declaration
Public Function Exists ( _
    alertID As Guid _
) As Boolean
'Usage
Dim instance As AlertCollection
Dim alertID As Guid
Dim returnValue As Boolean

returnValue = instance.Exists(alertID)
public bool Exists(
    Guid alertID
)

Parameters

  • alertID
    Type: System.Guid

    A GUID that identifies the search alert.

Return Value

Type: System.Boolean
true if the search alert exists in the alert collection; otherwise false.

See Also

Reference

AlertCollection Class

AlertCollection Members

Microsoft.Office.Server.Search.Query Namespace