다음을 통해 공유


SoapNonPositiveInteger 생성자

정의

SoapNonPositiveInteger 클래스의 새 인스턴스를 초기화합니다.

오버로드

SoapNonPositiveInteger()

SoapNonPositiveInteger 클래스의 새 인스턴스를 초기화합니다.

SoapNonPositiveInteger(Decimal)

SoapNonPositiveInteger 값을 사용하여 Decimal 클래스의 새 인스턴스를 초기화합니다.

SoapNonPositiveInteger()

SoapNonPositiveInteger 클래스의 새 인스턴스를 초기화합니다.

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

예제

다음 코드 예제에서는이 생성자를 사용 하는 방법을 보여 줍니다.

// 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());

적용 대상

SoapNonPositiveInteger(Decimal)

SoapNonPositiveInteger 값을 사용하여 Decimal 클래스의 새 인스턴스를 초기화합니다.

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)

매개 변수

value
Decimal

현재 인스턴스를 초기화할 Decimal 값입니다.

예외

value가 0보다 큽니다.

예제

다음 코드 예제에서는이 생성자를 사용 하는 방법을 보여 줍니다.

// 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());

적용 대상