ServiceManager.Contains<TServiceType> Method

Determines if the ServiceManager contains a service of the specified type.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Function Contains(Of TServiceType) As Boolean
public bool Contains<TServiceType>()
public:
generic<typename TServiceType>
bool Contains()
member Contains : unit -> bool 
JScript does not support generic types or methods.

Type Parameters

  • TServiceType

Return Value

Type: System.Boolean
true if ServiceManager contains serviceType; otherwise, false.

.NET Framework Security

See Also

Reference

ServiceManager Class

Contains Overload

Microsoft.Windows.Design Namespace

EditingContext

ContextItem

Other Resources

WPF Designer Extensibility