SoapNonPositiveInteger Constructors

Definition

Initializes a new instance of the SoapNonPositiveInteger class.

Overloads

SoapNonPositiveInteger()

Initializes a new instance of the SoapNonPositiveInteger class.

SoapNonPositiveInteger(Decimal)

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

SoapNonPositiveInteger()

Initializes a new instance of the SoapNonPositiveInteger class.

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

Examples

The following code example shows how to use this constructor.

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

Applies to

SoapNonPositiveInteger(Decimal)

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

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

Parameters

value
Decimal

A Decimal value to initialize the current instance.

Exceptions

value is greater than zero.

Examples

The following code example shows how to use this constructor.

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

Applies to