Share via


GameServiceContainer.RemoveService Method

Removes the object providing a specified service.

Syntax

'Declaration
Public Sub RemoveService ( _
         type As Type _
)
public void RemoveService (
         Type type
)
public:
void RemoveService(
         Type type
)

Parameters

  • type
    Type: Type
    The type of service.

Exceptions

Exception type Condition
ArgumentNullException The type parameter is null.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

GameServiceContainer Class
GameServiceContainer Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone