SoapInteger Constructors

Definition

Initializes a new instance of the SoapInteger class.

Overloads

SoapInteger()

Initializes a new instance of the SoapInteger class.

SoapInteger(Decimal)

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

SoapInteger()

Initializes a new instance of the SoapInteger class.

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

Examples

The following code example shows how to use this constructor.

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

Applies to

SoapInteger(Decimal)

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

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

Parameters

value
Decimal

A Decimal value to initialize the current instance.

Examples

The following code example shows how to use this constructor.

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

Applies to