. Method
Namespace: Microsoft.VisualStudio.Data.Tools.Package.UI
Assembly: Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.dll)
Syntax
'Declaration
Private Function QueryService ( _
ByRef serviceGuid As Guid, _
ByRef interfaceGuid As Guid, _
<OutAttribute> ByRef service As IntPtr _
) As Integer Implements IServiceProvider.QueryService
'Usage
Dim instance As DataPackage
Dim serviceGuid As Guid
Dim interfaceGuid As Guid
Dim service As IntPtr
Dim returnValue As Integer
returnValue = CType(instance, IServiceProvider).QueryService(serviceGuid, _
interfaceGuid, service)
int IServiceProvider.QueryService(
ref Guid serviceGuid,
ref Guid interfaceGuid,
out IntPtr service
)
private:
virtual int QueryService(
Guid% serviceGuid,
Guid% interfaceGuid,
[OutAttribute] IntPtr% service
) sealed = IServiceProvider::QueryService
private abstract QueryService :
serviceGuid:Guid byref *
interfaceGuid:Guid byref *
service:IntPtr byref -> int
private override QueryService :
serviceGuid:Guid byref *
interfaceGuid:Guid byref *
service:IntPtr byref -> int
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
- serviceGuid
Type: System..::..Guid%
- interfaceGuid
Type: System..::..Guid%
- service
Type: System..::..IntPtr%
Return Value
Type: System..::..Int32
Implements
IServiceProviderQueryService(Guid%, Guid%, IntPtr%)