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
'Declaration
Function GetProviderGuid ( _
<OutAttribute> ByRef pguidProvider As Guid _
) As Integer
int GetProviderGuid(
out Guid pguidProvider
)
int GetProviderGuid(
[OutAttribute] Guid% pguidProvider
)
abstract GetProviderGuid :
pguidProvider:Guid byref -> int
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
);
.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.