IVsProjectStartupServices.GetStartupServiceEnum Method
Used to look up a third party service array element by GUID.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function GetStartupServiceEnum ( _
<OutAttribute> ByRef ppenum As IEnumProjectStartupServices _
) As Integer
'用途
Dim instance As IVsProjectStartupServices
Dim ppenum As IEnumProjectStartupServices
Dim returnValue As Integer
returnValue = instance.GetStartupServiceEnum(ppenum)
int GetStartupServiceEnum(
out IEnumProjectStartupServices ppenum
)
int GetStartupServiceEnum(
[OutAttribute] IEnumProjectStartupServices^% ppenum
)
abstract GetStartupServiceEnum :
ppenum:IEnumProjectStartupServices byref -> int
function GetStartupServiceEnum(
ppenum : IEnumProjectStartupServices
) : int
Parameters
- ppenum
Type: Microsoft.VisualStudio.Shell.Interop.IEnumProjectStartupServices%
[out] Pointer to the IEnumProjectStartupServices interface object.
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 vsshell.idl:
HRESULT IVsProjectStartupServices::GetStartupServiceEnum(
[out] IEnumProjectStartupServices **ppEnum
);
IEnumProjectStartupServices follows the standard enumeration interface structure and has the standard enumerator methods described in MSDN (check the description of IEnumXXXX). As with all enumerator interfaces, the purpose of the interface is to enumerate specific items of a given type. In this case service GUIDs are enumerated.
The GetStartupServiceEnum method returns a pointer to the IEnumProjectStartupServices interface.
.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.
See Also
Reference
IVsProjectStartupServices Interface