SearchOptionsItemTemplateSelector.SelectTemplate Method
Obtains the template for the specified search option item.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣言
Public Overrides Function SelectTemplate ( _
item As Object, _
container As DependencyObject _
) As DataTemplate
public override DataTemplate SelectTemplate(
Object item,
DependencyObject container
)
Parameters
- item
Type: System.Object
The item to get the template for.
- container
Type: System.Windows.DependencyObject
The option button containing the item.
Return Value
Type: System.Windows.DataTemplate
Returns the template of the item.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.