PowerSNMP for .NET CF
Counter Constructor(Int64)
See Also  Send comments on this topic.
Dart.Snmp.SimpleType Namespace > Counter Class > Counter Constructor : Counter Constructor(Int64)




count
The initial value given to this object. An Int64 is used because UInt32 is not CLS-compliant.
Initializes a new instance of the Counter class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal count As Long _
)
Visual Basic (Usage)Copy Code
Dim count As Long
 
Dim instance As New Counter(count)
C# 
public Counter( 
   long count
)
Managed Extensions for C++ 
public: Counter( 
   long count
)
C++/CLI 
public:
Counter( 
   int64 count
)

Parameters

count
The initial value given to this object. An Int64 is used because UInt32 is not CLS-compliant.

Exceptions

ExceptionDescription
System.ArgumentNullExceptioncount is a null reference.
System.FormatExceptioncount does not consist of an optional sign followed by a sequence of digits.
System.OverflowExceptioncount is less than UInt32.MinValue or greater than UInt.MaxValue.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.