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
- 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.
See Also
Reference
Microsoft.Windows.Design Namespace