SoapNegativeInteger クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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 クラスのメンバーを使用して、 SoapNegativeInteger オブジェクトと XSD negativeInteger 文字列の間で変換する方法を示しています。
#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() |