IVsTaskProvider3.GetProviderGuid Method
Returns a unique Identifier for this provider. This is used to persist & restore per-provider data managed by the task list, such as user customizations of column width & order. If it is not practical to assign a GUID to this provider (e.g. the provider is dynamically created at run-time and the identity cannot be preserved across VS sessions), you may return GUID_NULL. However, you should be aware that certain functionality (such as UI settings persistence and the IVsTaskList2.SetActiveProvider method) will not work in that case.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaración
Function GetProviderGuid ( _
<OutAttribute> ByRef pguidProvider As Guid _
) As Integer
'Uso
Dim instance As IVsTaskProvider3
Dim pguidProvider As Guid
Dim returnValue As Integer
returnValue = instance.GetProviderGuid(pguidProvider)
int GetProviderGuid(
out Guid pguidProvider
)
int GetProviderGuid(
[OutAttribute] Guid% pguidProvider
)
function GetProviderGuid(
pguidProvider : Guid
) : int
Parameters
pguidProvider
Type: System.Guid%[out] A pointer to a Provider Identifier (an object of type GUID).
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
HRESULT IVsTaskProvider3::GetProviderGuid(
[out] GUID* pguidProvider
);
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.