Redigera

Dela via


TypeProvider.GetService(Type) Method

Definition

Gets the Object that provides the designated service Type.

public:
 virtual System::Object ^ GetService(Type ^ serviceType);
public object GetService (Type serviceType);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object

Parameters

serviceType
Type

The service Type that the Object is to provide.

Returns

The Object that provides the designated service Type.

Implements

Remarks

If the encapsulated IServiceProvider associated with this instance is a null reference (Nothing in Visual Basic) then a null reference (Nothing) is returned.

Applies to