SoapQName Clase
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Ajusta un tipo XSD QName
.
public ref class SoapQName sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapQName : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapQName : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapQName = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapQName = class
interface ISoapXsd
Public NotInheritable Class SoapQName
Implements ISoapXsd
- Herencia
-
SoapQName
- Atributos
- Implementaciones
Ejemplos
En el ejemplo de código siguiente se muestra cómo usar los miembros de la SoapQName clase para convertir entre un SoapQName objeto y una cadena XSD QName
.
#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 SoapQName object.
String^ xsdQName = L"tns:SomeName";
SoapQName^ qName = SoapQName::Parse( xsdQName );
// Print the value of the SoapQName object in XSD format.
Console::WriteLine( L"The SoapQName object in XSD format is {0}.", qName );
// Print the XSD type string of the SoapQName object.
Console::WriteLine( L"The XSD type of the SoapQName "
L"object is {0}.", qName->GetXsdType() );
// Print the XSD type string of the SoapQName class.
Console::WriteLine( L"The XSD type of the SoapQName class "
L"is {0}.", SoapQName::XsdType );
// Create a QName object.
SoapQName^ soapQNameInstance = gcnew SoapQName(
L"tns",L"SomeName",L"http://example.org" );
// Print the key the SoapQName object.
Console::WriteLine( L"The key of the SoapQName object is {0}.",
soapQNameInstance->Key );
// Print the name of the SoapQName object.
Console::WriteLine( L"The name of the SoapQName "
L"object is {0}.", soapQNameInstance->Name );
// Print the namespace of the SoapQName class.
Console::WriteLine( L"The namespace for this instance of SoapQName is {0}.",
soapQNameInstance->Namespace );
}
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 SoapQName object.
string xsdQName = "tns:SomeName";
SoapQName qName = SoapQName.Parse(xsdQName);
// Print the value of the SoapQName object in XSD format.
Console.WriteLine(
"The SoapQName object in XSD format is {0}.",
qName.ToString());
// Print the XSD type string of the SoapQName object.
Console.WriteLine("The XSD type of the SoapQName " +
"object is {0}.", qName.GetXsdType());
// Print the XSD type string of the SoapQName class.
Console.WriteLine(
"The XSD type of the SoapQName class " +
"is {0}.", SoapQName.XsdType);
// Create a QName object.
SoapQName soapQNameInstance =
new SoapQName("tns", "SomeName", "http://example.org");
// Print the key the SoapQName object.
Console.WriteLine("The key of the SoapQName " +
"object is {0}.", soapQNameInstance.Key);
// Print the name of the SoapQName object.
Console.WriteLine("The name of the SoapQName " +
"object is {0}.", soapQNameInstance.Name);
// Print the namespace of the SoapQName class.
Console.WriteLine("The namespace for this instance of SoapQName " +
"is {0}.", soapQNameInstance.Namespace);
}
}
Comentarios
Para obtener más información sobre los tipos de datos XSD, vea Referencia de tipos de datos XML.
Constructores
SoapQName() |
Inicializa una nueva instancia de la clase SoapQName. |
SoapQName(String) |
Inicializa una nueva instancia de la clase SoapQName con la parte local de un nombre completo. |
SoapQName(String, String) |
Inicializa una nueva instancia de la clase SoapQName con el alias del espacio de nombres y la parte local de un nombre completo. |
SoapQName(String, String, String) |
Inicializa una nueva instancia de la clase SoapQName con el alias del espacio de nombres, la parte local de un nombre completo y el espacio de nombres al que hace referencia el alias. |
Propiedades
Key |
Obtiene o establece el alias del espacio de nombres de un nombre completo. |
Name |
Obtiene o establece parte de un nombre completo. |
Namespace |
Obtiene o establece el espacio de nombres al que se hace referencia en Key. |
XsdType |
Obtiene el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual. |
Métodos
Equals(Object) |
Determina si el objeto especificado es igual que el objeto actual. (Heredado de Object) |
GetHashCode() |
Sirve como la función hash predeterminada. (Heredado de Object) |
GetType() |
Obtiene el Type de la instancia actual. (Heredado de Object) |
GetXsdType() |
Devuelve el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual. |
MemberwiseClone() |
Crea una copia superficial del Object actual. (Heredado de Object) |
Parse(String) |
Convierte el objeto String especificado en un objeto SoapQName. |
ToString() |
Devuelve el nombre completo como un String. |
Se aplica a
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de