ServiceProvider.QueryService ServiceProvider.QueryService ServiceProvider.QueryService Method

Definition

Overloads

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

Gets type-based services from the unmanaged service provider, with an option to prevent the error being sent to the shell.

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

Gets type-based services from the unmanaged service provider, with an option to prevent the error being sent to the shell.

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

Gets type-based services from the unmanaged service provider, with an option to prevent the error being sent to the shell.

public int QueryService (Guid guid, out object service);
member this.QueryService : Guid *  -> int
Parameters
guid
Guid Guid Guid

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

[out] The requested service, or a null if the service could not be located.

Returns

The HRESULT.

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

Gets type-based services from the unmanaged service provider, with an option to prevent the error being sent to the shell.

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

The type of service to retrieve.

service
Object Object Object

The requested service, or null.

Returns

The HRESULT.

Applies to