IDiscoveryClientResultCollection.GetResultCount Method

Returns the number of results in the collection of discovery results.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣言
Function GetResultCount ( _
    <OutAttribute> ByRef pCount As Integer _
) As Integer
'使用
Dim instance As IDiscoveryClientResultCollection
Dim pCount As Integer
Dim returnValue As Integer

returnValue = instance.GetResultCount(pCount)
int GetResultCount(
    out int pCount
)
int GetResultCount(
    [OutAttribute] int% pCount
)
function GetResultCount(
    pCount : int
) : int

Parameters

  • pCount
    Type: System.Int32%

    [out] The number of discovery results in the collection.

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 discoveryservice80.idl:

HRESULT IDiscoveryClientResultCollection::GetResultCount(
   [out, retval] int *pCount
);

Permissions

See Also

Reference

IDiscoveryClientResultCollection Interface

IDiscoveryClientResultCollection Members

Microsoft.VisualStudio.Shell.Interop Namespace