SearchControlAutomationPeer.GetPattern Method
When overridden in a derived class, gets the control pattern that is associated with the specified PatternInterface.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣言
Public Overrides Function GetPattern ( _
patternInterface As PatternInterface _
) As Object
public override Object GetPattern(
PatternInterface patternInterface
)
Parameters
- patternInterface
Type: System.Windows.Automation.Peers.PatternInterface
The interface to get the pattern for.
Return Value
Type: System.Object
Returns the object that implements the pattern interface; a null reference if this peer does not support the interface.Object.
.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.