DateTimeAutomationPeer.GetPattern Method (PatternInterface)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the control pattern implementation for this DateTimeAutomationPeer.

Namespace:   System.Windows.Automation.Peers
Assembly:  PresentationFramework (in PresentationFramework.dll)

public override object GetPattern(
	PatternInterface patternInterface


Type: System.Windows.Automation.Peers.PatternInterface

The type of pattern implemented by the element to retrieve.

Return Value

Type: System.Object

The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer.

.NET Framework
Available since 4.0
Return to top