ServiceProvider.QueryService ServiceProvider.QueryService ServiceProvider.QueryService ServiceProvider.QueryService Method

Definition

Overloads

QueryService(Guid, Object) QueryService(Guid, Object) QueryService(Guid, Object)

Gets the specified service from the unmanaged service provider.

QueryService(Type, Object) QueryService(Type, Object) QueryService(Type, Object) QueryService(Type, Object)

Gets type-based services from the unmanaged service provider.

QueryService(Guid, Object) QueryService(Guid, Object) 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 *  -> int
Parameters
guid
Guid Guid Guid Guid

The GUID of the service to retrieve.

service
Object Object Object 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.

QueryService(Type, Object) QueryService(Type, Object) QueryService(Type, Object) 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 *  -> int
Public Function QueryService (serviceType As Type, ByRef service As Object) As Integer
Parameters
serviceType
Type Type Type 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 Object Object 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