Partager via


SearchOptionDataSource Class

Represents a data source for a search option for the search control.

Inheritance Hierarchy

Object
  GelDependencyObject
    Microsoft.VisualStudio.PlatformUI.SearchOptionDataSource

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Class SearchOptionDataSource _
    Inherits GelDependencyObject
public class SearchOptionDataSource : GelDependencyObject
public ref class SearchOptionDataSource : public GelDependencyObject
type SearchOptionDataSource =  
    class 
        inherit GelDependencyObject 
    end
public class SearchOptionDataSource extends GelDependencyObject

The SearchOptionDataSource type exposes the following members.

Constructors

  Name Description
Public method SearchOptionDataSource Creates a new instance of a search option data source.

Top

Properties

  Name Description
Public property DisplayText Gets or sets the value of the display text for the search option.
Public property Tooltip Gets or sets the value of the tooltip text for the search option.
Public property Type Gets or sets the type (Boolean or command) for the search option.
Public property Value Gets or sets the value for the search option. This property is only valid for Boolean search options.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnSelect Provides class handling for selecting the search option on the data source or any element derived from it.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member DisplayTextProperty
Public fieldStatic member SelectVerb
Public fieldStatic member TooltipProperty
Public fieldStatic member TypeProperty
Public fieldStatic member ValueProperty

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.PlatformUI Namespace