Share via


ServiceProvider.QueryService Method (Type, Object%)

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaration
Public Function QueryService ( _
    serviceType As Type, _
    <OutAttribute> ByRef service As Object _
) As Integer
public int QueryService(
    Type serviceType,
    out Object service
)
public:
int QueryService(
    Type^ serviceType, 
    [OutAttribute] Object^% service
)
member QueryService : 
        serviceType:Type * 
        service:Object byref -> int
public function QueryService(
    serviceType : Type, 
    service : Object
) : int

Parameters

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

ServiceProvider Class

QueryService Overload

Microsoft.VisualStudio.Shell Namespace