TaskProvider.IVsTaskProvider3.GetSurrogateProviderGuid Method
If this method is implemented, all the provider's tasks will be listed under the surrogate provider in the list as though they belonged to the surrogate provider.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
声明
Private Function GetSurrogateProviderGuid ( _
<OutAttribute> ByRef guid As Guid _
) As Integer Implements IVsTaskProvider3.GetSurrogateProviderGuid
用法
Dim instance As TaskProvider
Dim guid As Guid
Dim returnValue As Integer
returnValue = CType(instance, IVsTaskProvider3).GetSurrogateProviderGuid(guid)
int IVsTaskProvider3.GetSurrogateProviderGuid(
out Guid guid
)
private:
virtual int GetSurrogateProviderGuid(
[OutAttribute] Guid% guid
) sealed = IVsTaskProvider3::GetSurrogateProviderGuid
private abstract GetSurrogateProviderGuid :
guid:Guid byref -> int
private override GetSurrogateProviderGuid :
guid:Guid byref -> int
JScript does not support explicit interface implementations.
Parameters
- guid
Type: System.Guid%
[out] The GUID of the surrogate provider. By default returns an empty GUID.
Return Value
Type: System.Int32
When implemented by derived classes, S_OK() or an error code.
Implements
IVsTaskProvider3.GetSurrogateProviderGuid(Guid%)
Remarks
By default this method returns E_NOTIMPL().
.NET Framework Security
- 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.