UserSettings.GetSavedSearch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
name is empty
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
name is empty