Share via


SoapNonPositiveInteger.Value 属性

定义

获取或设置当前实例的数值。

public:
 property System::Decimal Value { System::Decimal get(); void set(System::Decimal value); };
public decimal Value { get; set; }
member this.Value : decimal with get, set
Public Property Value As Decimal

属性值

Decimal,指示当前实例的数值。

例外

value 大于零。

示例

下面的代码示例说明如何使用 Value 属性。 此代码示例是为 SoapNonPositiveInteger 类提供的一个更大示例的一部分。

// Print the value of the SoapNonPositiveInteger object.
Console::WriteLine( L"The value of the SoapNonPositiveInteger object is {0}.",
   xsdInteger->Value );
// Print the value of the SoapNonPositiveInteger object.
Console.WriteLine(
    "The value of the SoapNonPositiveInteger " +
    "object is {0}.", xsdInteger.Value);

适用于