SoapNonNegativeInteger Constructors

Definition

Initializes a new instance of the SoapNonNegativeInteger class.

Overloads

SoapNonNegativeInteger()

Initializes a new instance of the SoapNonNegativeInteger class.

SoapNonNegativeInteger(Decimal)

Initializes a new instance of the SoapNonNegativeInteger class with a Decimal value.

SoapNonNegativeInteger()

Initializes a new instance of the SoapNonNegativeInteger class.

public:
 SoapNonNegativeInteger();
public SoapNonNegativeInteger ();
Public Sub New ()

Examples

The following code example shows how to use this constructor.

// Create a SoapNonNegativeInteger object.
SoapNonNegativeInteger^ xsdInteger = gcnew SoapNonNegativeInteger;
xsdInteger->Value = +14;
Console::WriteLine( L"The value of the SoapNonNegativeInteger object is {0}.", xsdInteger );
// Create a SoapNonNegativeInteger object.
SoapNonNegativeInteger xsdInteger =
    new SoapNonNegativeInteger();
xsdInteger.Value = +14;
Console.WriteLine(
    "The value of the SoapNonNegativeInteger object is {0}.",
    xsdInteger.ToString());

Applies to

SoapNonNegativeInteger(Decimal)

Initializes a new instance of the SoapNonNegativeInteger class with a Decimal value.

public:
 SoapNonNegativeInteger(System::Decimal value);
public SoapNonNegativeInteger (decimal value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonNegativeInteger : decimal -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonNegativeInteger
Public Sub New (value As Decimal)

Parameters

value
Decimal

A Decimal value to initialize the current instance.

Exceptions

value is less than 0.

Examples

The following code example shows how to use this constructor.

// Create a SoapNonNegativeInteger object.
Decimal decimalValue = +14;
SoapNonNegativeInteger^ xsdInteger = gcnew SoapNonNegativeInteger( decimalValue );
Console::WriteLine( L"The value of the SoapNonNegativeInteger object is {0}.", xsdInteger );
// Create a SoapNonNegativeInteger object.
decimal decimalValue = +14;
SoapNonNegativeInteger xsdInteger =
    new SoapNonNegativeInteger(decimalValue);
Console.WriteLine(
    "The value of the SoapNonNegativeInteger object is {0}.",
    xsdInteger.ToString());

Applies to