Share via


IVsTaskProvider3.GetProviderGuid(Guid) Method

Definition

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.

public:
 int GetProviderGuid([Runtime::InteropServices::Out] Guid % pguidProvider);
public int GetProviderGuid (out Guid pguidProvider);
abstract member GetProviderGuid : Guid -> int
Public Function GetProviderGuid (ByRef pguidProvider As Guid) As Integer

Parameters

pguidProvider
Guid

[out] A pointer to a Provider Identifier (an object of type GUID).

Returns

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  
);  

Applies to