Szerkesztés

Megosztás a következőn keresztül:


MenuCommandService.GetService(Type) Method

Definition

Gets a reference to the requested service.

protected:
 System::Object ^ GetService(Type ^ serviceType);
protected object GetService (Type serviceType);
protected object? GetService (Type serviceType);
member this.GetService : Type -> obj
Protected Function GetService (serviceType As Type) As Object

Parameters

serviceType
Type

The Type of the service to retrieve.

Returns

A reference to serviceType; otherwise, null if the service is not found.

Exceptions

serviceType is null.

Applies to

See also