Share via


ServiceManager.Contains<ServiceType> Method

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

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

Syntax

'Declaration
Public Function Contains(Of ServiceType) As Boolean
'Usage
Dim instance As ServiceManager 
Dim returnValue As Boolean 

returnValue = instance.Contains()
public bool Contains<ServiceType>()
public:
generic<typename ServiceType>
bool Contains()
JScript does not support generic types or methods.

Type Parameters

  • ServiceType
    The type of service to search for.

Return Value

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

.NET Framework Security

See Also

Reference

ServiceManager Class

ServiceManager Members

Contains Overload

Microsoft.Windows.Design Namespace

EditingContext

ContextItem

Other Resources

WPF Designer Extensibility