Share via


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

'Declaration
Function GetResultCount ( _
    <OutAttribute> ByRef pCount As Integer _
) As Integer
int GetResultCount(
    out int pCount
)
int GetResultCount(
    [OutAttribute] int% pCount
)
abstract GetResultCount : 
        pCount:int byref -> int
function GetResultCount(
    pCount : int
) : int

Parameters

  • pCount
    Type: Int32%

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

Return Value

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

.NET Framework Security

See Also

Reference

IDiscoveryClientResultCollection Interface

Microsoft.VisualStudio.Shell.Interop Namespace