SoapQName クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public NotInheritable Class SoapQName Implements ISoapXsd

XSD データ型の詳細については、MSDN ライブラリ (http://msdn.microsoft.com/library) の「XML Data Types Reference」を参照してください。

SoapQName クラスのメンバを使用して、SoapQName オブジェクトと XSD QName 文字列間の変換を行う方法を次のコード例に示します。
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); } }
#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 ); }
import System.*; import 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.get_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.get_Key()); // Print the name of the SoapQName object. Console.WriteLine("The name of the SoapQName " + "object is {0}.", soapQNameInstance.get_Name()); // Print the namespace of the SoapQName class. Console.WriteLine("The namespace for this instance of SoapQName " + "is {0}.", soapQNameInstance.get_Namespace()); } //main } //Demo

System.Runtime.Remoting.Metadata.W3cXsd2001.SoapQName


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からSoapQName クラスを検索する場合は、下記のリンクをクリックしてください。

- SoapQName クラスのページへのリンク