Compartir a través de


ServiceProvider.QueryService Method

Definition

Overloads

QueryService(Guid, Object)

Gets the specified service from the unmanaged service provider.

QueryService(Type, Object)

Gets type-based services from the unmanaged service provider.

QueryService(Guid, Object)

Gets the specified service from the unmanaged service provider.

public:
 int QueryService(Guid guid, [Runtime::InteropServices::Out] System::Object ^ % service);
public int QueryService (Guid guid, out object service);
member this.QueryService : Guid * obj -> int
Public Function QueryService (guid As Guid, ByRef service As Object) As Integer

Parameters

guid
Guid

The GUID of the service to retrieve.

service
Object

The requested service, or a null reference (Nothing in Visual Basic) if the service could not be located.

Returns

The HRESULT of the QueryService invocation on the native service provider.

Applies to

QueryService(Type, Object)

Gets type-based services from the unmanaged service provider.

public:
 int QueryService(Type ^ serviceType, [Runtime::InteropServices::Out] System::Object ^ % service);
public int QueryService (Type serviceType, out object service);
member this.QueryService : Type * obj -> int
Public Function QueryService (serviceType As Type, ByRef service As Object) As Integer

Parameters

serviceType
Type

The type of service to retrieve. The GUID of this type is used to obtain the service from the native service provider.

service
Object

The requested service, or a null reference (Nothing in Visual Basic) if the service could not be located.

Returns

The HRESULT of the QueryService invocation on the native service provider.

Applies to