Determine the number of elements transmitted by the communication operation associated with this object.

Namespace:  MPI
Assembly:  MPI (in MPI.dll)
Version: (


public Nullable<int> Count(
	Type type
Visual Basic (Declaration)
Public Function Count ( _
	type As Type _
) As Nullable(Of Integer)
Visual C++
Nullable<int> Count(
	Type^ type


Type: System..::.Type
The type of data that will be stored in the message.

Return Value

If the type of the data is a value type, returns the number of elements in the message. Otherwise, returns null, because the number of elements stored in the message won't be known until the message is received.

See Also