Share via


ServiceManager.Contains Method (Type)

When overridden in a derived class, determines whether 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 MustOverride Function Contains ( _
    serviceType As Type _
) As Boolean
public abstract bool Contains(
    Type serviceType
)
public:
virtual bool Contains(
    Type^ serviceType
) abstract
abstract Contains : 
        serviceType:Type -> bool 
public abstract function Contains(
    serviceType : Type
) : boolean

Parameters

  • serviceType
    Type: System.Type
    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

Contains Overload

Microsoft.Windows.Design Namespace

EditingContext

ContextItem

Other Resources

WPF Designer Extensibility