SoapNonNegativeInteger Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Esegue il wrapping di un tipo nonNegativeInteger
XSD.
public ref class SoapNonNegativeInteger sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapNonNegativeInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapNonNegativeInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapNonNegativeInteger = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapNonNegativeInteger = class
interface ISoapXsd
Public NotInheritable Class SoapNonNegativeInteger
Implements ISoapXsd
- Ereditarietà
-
SoapNonNegativeInteger
- Attributi
- Implementazioni
Esempio
Nell'esempio di codice seguente viene illustrato come usare i membri della SoapNonNegativeInteger classe per convertire tra un oggetto e una SoapNonNegativeInteger stringa XSD nonNegativeInteger
.
#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 SoapNonNegativeInteger
// object.
String^ xsdIntegerString = L"+13";
SoapNonNegativeInteger^ xsdInteger = SoapNonNegativeInteger::Parse(
xsdIntegerString );
// Print the value of the SoapNonNegativeInteger object
// in XSD format.
Console::WriteLine(
L"The SoapNonNegativeInteger object in XSD format is {0}.",
xsdInteger );
// Print the XSD type string of the SoapNonNegativeInteger object.
Console::WriteLine( L"The XSD type of the SoapNonNegativeInteger "
L"object is {0}.", xsdInteger->GetXsdType() );
// Print the value of the SoapNonNegativeInteger object.
Console::WriteLine( L"The value of the SoapNonNegativeInteger "
L"object is {0}.", xsdInteger->Value );
// Print the XSD type string of the SoapNonNegativeInteger class.
Console::WriteLine( L"The XSD type of the SoapNonNegativeInteger class "
L"is {0}.", SoapNonNegativeInteger::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 SoapNonNegativeInteger
// object.
string xsdIntegerString = "+13";
SoapNonNegativeInteger xsdInteger =
SoapNonNegativeInteger.Parse(xsdIntegerString);
// Print the value of the SoapNonNegativeInteger object
// in XSD format.
Console.WriteLine(
"The SoapNonNegativeInteger object in XSD format is {0}.",
xsdInteger.ToString());
// Print the XSD type string of the SoapNonNegativeInteger object.
Console.WriteLine(
"The XSD type of the SoapNonNegativeInteger " +
"object is {0}.", xsdInteger.GetXsdType());
// Print the value of the SoapNonNegativeInteger object.
Console.WriteLine(
"The value of the SoapNonNegativeInteger " +
"object is {0}.", xsdInteger.Value);
// Print the XSD type string of the SoapNonNegativeInteger class.
Console.WriteLine(
"The XSD type of the SoapNonNegativeInteger class " +
"is {0}.", SoapNonNegativeInteger.XsdType);
}
}
Commenti
Per altre informazioni sui tipi di dati XSD, vedere Informazioni di riferimento sui tipi di dati XML.
Costruttori
SoapNonNegativeInteger() |
Inizializza una nuova istanza della classe SoapNonNegativeInteger. |
SoapNonNegativeInteger(Decimal) |
Inizializza una nuova istanza della classe SoapNonNegativeInteger con un valore Decimal. |
Proprietà
Value |
Ottiene o imposta il valore numerico dell'istanza corrente. |
XsdType |
Ottiene il linguaggio XSD (XML Schema Definition) del tipo SOAP corrente. |
Metodi
Equals(Object) |
Determina se l'oggetto specificato è uguale all'oggetto corrente. (Ereditato da Object) |
GetHashCode() |
Funge da funzione hash predefinita. (Ereditato da Object) |
GetType() |
Ottiene l'oggetto Type dell'istanza corrente. (Ereditato da Object) |
GetXsdType() |
Restituisce l'oggetto XML Schema Definition Language (XSD) del tipo SOAP corrente. |
MemberwiseClone() |
Crea una copia superficiale dell'oggetto Object corrente. (Ereditato da Object) |
Parse(String) |
Converte l'oggetto String specificato in un oggetto SoapNonNegativeInteger. |
ToString() |
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per