Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Private Function QueryService ( _
ByRef sid As Guid, _
ByRef iid As Guid, _
<OutAttribute> ByRef ppvObj As IntPtr _
) As Integer Implements IServiceProvider.QueryService
'使用
Dim instance As Package
Dim sid As Guid
Dim iid As Guid
Dim ppvObj As IntPtr
Dim returnValue As Integer
returnValue = CType(instance, IServiceProvider).QueryService(sid, _
iid, ppvObj)
int IServiceProvider.QueryService(
ref Guid sid,
ref Guid iid,
out IntPtr ppvObj
)
private:
virtual int QueryService(
Guid% sid,
Guid% iid,
[OutAttribute] IntPtr% ppvObj
) sealed = IServiceProvider::QueryService
JScript does not support explicit interface implementations.
Parameters
- sid
Type: System.Guid%
- iid
Type: System.Guid%
- ppvObj
Type: System.IntPtr%
Return Value
Type: System.Int32
Implements
IServiceProvider.QueryService(Guid%, Guid%, IntPtr%)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.