SoapNegativeInteger 类

定义

包装 XSD negativeInteger 类型。

public ref class SoapNegativeInteger sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapNegativeInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapNegativeInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapNegativeInteger = class
    interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapNegativeInteger = class
    interface ISoapXsd
Public NotInheritable Class SoapNegativeInteger
Implements ISoapXsd
继承
SoapNegativeInteger
属性
实现

示例

下面的代码示例演示如何使用 类中的SoapNegativeInteger成员在 对象和 XSD negativeInteger 字符串之间SoapNegativeInteger转换。

#using <System.Runtime.Remoting.dll>
using namespace System;
using namespace System::Runtime::Remoting::Metadata::W3cXsd2001;

int main()
{
   // Parse an XSD formatted string to create a SoapNegativeInteger
   // object.
   String^ xsdIntegerString = L"-13";
   SoapNegativeInteger^ xsdInteger = SoapNegativeInteger::Parse(
      xsdIntegerString );

   // Print the value of the SoapNegativeInteger object in XSD format.
   Console::WriteLine( L"The SoapNegativeInteger object in XSD format is {0}.",
      xsdInteger );

   // Print the XSD type string of the SoapNegativeInteger object.
   Console::WriteLine( L"The XSD type of the SoapNegativeInteger "
   L"object is {0}.", xsdInteger->GetXsdType() );

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

   // Print the XSD type string of the SoapNegativeInteger class.
   Console::WriteLine( L"The XSD type of the SoapNegativeInteger class "
   L"is {0}.", SoapNegativeInteger::XsdType );
}
using System;
using System.Runtime.Remoting.Metadata.W3cXsd2001;

public class Demo
{
    public static void Main(string[] args)
    {
        // Parse an XSD formatted string to create a SoapNegativeInteger
        // object.
        string xsdIntegerString = "-13";
        SoapNegativeInteger xsdInteger =
            SoapNegativeInteger.Parse(xsdIntegerString);

        // Print the value of the SoapNegativeInteger object in XSD format.
        Console.WriteLine(
            "The SoapNegativeInteger object in XSD format is {0}.",
            xsdInteger.ToString());

        // Print the XSD type string of the SoapNegativeInteger object.
        Console.WriteLine(
            "The XSD type of the SoapNegativeInteger " +
            "object is {0}.", xsdInteger.GetXsdType());

        // Print the value of the SoapNegativeInteger object.
        Console.WriteLine(
            "The value of the SoapNegativeInteger " +
            "object is {0}.", xsdInteger.Value);

        // Print the XSD type string of the SoapNegativeInteger class.
        Console.WriteLine(
            "The XSD type of the SoapNegativeInteger class " +
            "is {0}.", SoapNegativeInteger.XsdType);
    }
}

注解

有关 XSD 数据类型的详细信息,请参阅 XML 数据类型参考

构造函数

SoapNegativeInteger()

初始化 SoapNegativeInteger 类的新实例。

SoapNegativeInteger(Decimal)

SoapNegativeInteger 值初始化 Decimal 类的新实例。

属性

Value

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

XsdType

获取当前 SOAP 类型的 XML 架构定义语言 (XSD)。

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
GetXsdType()

返回当前 SOAP 类型的 XML 架构定义语言 (XSD)。

MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
Parse(String)

将指定的 String 转换为 SoapNegativeInteger 对象。

ToString()

返回 Value 作为 String

适用于