Share via


UserSettings.GetSavedSearch Method

Definition

Gets a saved search for the current user.

Overloads

GetSavedSearch(Guid)

Retrieves the saved search, by name, for the current user.

GetSavedSearch(String)

Retrieves the saved search, by name, for the current user.

GetSavedSearch(Guid)

Retrieves the saved search, by name, for the current user.

public:
 Microsoft::EnterpriseManagement::Monitoring::SavedSearch ^ GetSavedSearch(Guid id);
public Microsoft.EnterpriseManagement.Monitoring.SavedSearch GetSavedSearch (Guid id);
member this.GetSavedSearch : Guid -> Microsoft.EnterpriseManagement.Monitoring.SavedSearch
Public Function GetSavedSearch (id As Guid) As SavedSearch

Parameters

id
Guid

The globally unique identifier (GUID) for the saved search to get.

Returns

A SavedSearch object.

Exceptions

name is null

A SavedSearch with that id was not found

Applies to

GetSavedSearch(String)

Retrieves the saved search, by name, for the current user.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::SavedSearch ^> ^ GetSavedSearch(System::String ^ name);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.SavedSearch> GetSavedSearch (string name);
member this.GetSavedSearch : string -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.SavedSearch>
Public Function GetSavedSearch (name As String) As ReadOnlyCollection(Of SavedSearch)

Parameters

name
String

The name of the saved search.

Returns

A collection of SavedSearch objects.

Exceptions

name is null

Applies to