SoapNegativeInteger 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SoapNegativeInteger 类的新实例。
重载
SoapNegativeInteger() |
初始化 SoapNegativeInteger 类的新实例。 |
SoapNegativeInteger(Decimal) |
用 SoapNegativeInteger 值初始化 Decimal 类的新实例。 |
SoapNegativeInteger()
初始化 SoapNegativeInteger 类的新实例。
public:
SoapNegativeInteger();
public SoapNegativeInteger ();
Public Sub New ()
示例
下面的代码示例演示如何使用此构造函数。
// Create a SoapNegativeInteger object.
SoapNegativeInteger^ xsdInteger = gcnew SoapNegativeInteger;
xsdInteger->Value = -14;
Console::WriteLine( L"The value of the SoapNegativeInteger object is {0}.",
xsdInteger );
// Create a SoapNegativeInteger object.
SoapNegativeInteger xsdInteger =
new SoapNegativeInteger();
xsdInteger.Value = -14;
Console.WriteLine(
"The value of the SoapNegativeInteger object is {0}.",
xsdInteger.ToString());
适用于
SoapNegativeInteger(Decimal)
用 SoapNegativeInteger 值初始化 Decimal 类的新实例。
public:
SoapNegativeInteger(System::Decimal value);
public SoapNegativeInteger (decimal value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNegativeInteger : decimal -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNegativeInteger
Public Sub New (value As Decimal)
参数
例外
value
大于 -1。
示例
下面的代码示例演示如何使用此构造函数。
// Create a SoapNegativeInteger object.
Decimal decimalValue = -14;
SoapNegativeInteger^ xsdInteger = gcnew SoapNegativeInteger(
decimalValue );
Console::WriteLine( L"The value of the SoapNegativeInteger object is {0}.",
xsdInteger );
// Create a SoapNegativeInteger object.
decimal decimalValue = -14;
SoapNegativeInteger xsdInteger =
new SoapNegativeInteger(decimalValue);
Console.WriteLine(
"The value of the SoapNegativeInteger object is {0}.",
xsdInteger.ToString());
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈