Share via


ListContractAdapter<TContract>.ICollectionContract<TContract>.GetCount Method

This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.

For a description of this member, see ICollectionContract<C>.GetCount.

Namespace:  Microsoft.VisualStudio.Tools.Applications
Assembly:  Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0.dll)

Syntax

'Declaration
Private Function GetCount As Integer 
    Implements ICollectionContract(Of TContract).GetCount
'Usage
Dim instance As ListContractAdapter 
Dim returnValue As Integer 

returnValue = CType(instance, ICollectionContract(Of TContract)).GetCount()
int ICollectionContract<TContract>.GetCount()
private:
virtual int GetCount() sealed = ICollectionContract<TContract>::GetCount
JScript does not support explicit interface implementations.

Return Value

Type: System.Int32

Implements

ICollectionContract<C>.GetCount()

Remarks

This member is an explicit interface member implementation. It can be used only when the ListContractAdapter<TContract> instance is cast to an ICollectionContract<C> interface.

See Also

Reference

ListContractAdapter<TContract> Class

ListContractAdapter<TContract> Members

Microsoft.VisualStudio.Tools.Applications Namespace