SoapServices.GetXmlElementForInteropType メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Public Shared Function GetXmlElementForInteropType ( _ type As Type, _ <OutAttribute> ByRef xmlElement As String, _ <OutAttribute> ByRef xmlNamespace As String _ ) As Boolean
Dim type As Type Dim xmlElement As String Dim xmlNamespace As String Dim returnValue As Boolean returnValue = SoapServices.GetXmlElementForInteropType(type, xmlElement, xmlNamespace)
public static bool GetXmlElementForInteropType ( Type type, out string xmlElement, out string xmlNamespace )
public: static bool GetXmlElementForInteropType ( Type^ type, [OutAttribute] String^% xmlElement, [OutAttribute] String^% xmlNamespace )
public static boolean GetXmlElementForInteropType ( Type type, /** @attribute OutAttribute() */ /** @ref */ String xmlElement, /** @attribute OutAttribute() */ /** @ref */ String xmlNamespace )
戻り値
要求した値に SoapTypeAttribute のフラグが設定されている場合は true。それ以外の場合は false。


このメソッドを使用する方法を次のコード例に示します。このコード例は、SoapServices クラスのトピックで取り上げているコード例の一部分です。
// Get the XML element name and the XML namespace for // an Interop type. string xmlElement; bool isSoapTypeAttribute = SoapServices.GetXmlElementForInteropType( typeof(ExampleNamespace.ExampleClass), out xmlElement, out xmlNamespace); // Print whether the requested value was flagged // with a SoapTypeAttribute. if (isSoapTypeAttribute) { Console.WriteLine( "The requested value was flagged " + "with the SoapTypeAttribute."); } else { Console.WriteLine( "The requested value was not flagged " + "with the SoapTypeAttribute."); } // Print the XML element and the XML namespace. Console.WriteLine( "The XML element for the type " + "ExampleNamespace.ExampleClass is {0}.", xmlElement); Console.WriteLine( "The XML namespace for the type " + "ExampleNamespace.ExampleClass is {0}.", xmlNamespace);
// Get the XML element name and the XML namespace for // an Interop type. String^ xmlElement; bool isSoapTypeAttribute = SoapServices::GetXmlElementForInteropType( ExampleNamespace::ExampleClass::typeid,xmlElement,xmlNamespace ); // Print whether the requested value was flagged // with a SoapTypeAttribute. if ( isSoapTypeAttribute ) { Console::WriteLine( L"The requested value was flagged " L"with the SoapTypeAttribute." ); } else { Console::WriteLine( L"The requested value was not flagged " L"with the SoapTypeAttribute." ); } // Print the XML element and the XML namespace. Console::WriteLine( L"The XML element for the type " L"ExampleNamespace.ExampleClass is {0}.", xmlElement ); Console::WriteLine( L"The XML namespace for the type " L"ExampleNamespace.ExampleClass is {0}.", xmlNamespace );
// Get the XML element name and the XML namespace for // an Interop type. String xmlElement = ""; boolean isSoapTypeAttribute = SoapServices.GetXmlElementForInteropType( ExampleNamespace.ExampleClass.class.ToType(), xmlElement, xmlNamespace); // Print whether the requested value was flagged // with a SoapTypeAttribute. if (isSoapTypeAttribute) { Console.WriteLine("The requested value was flagged " + "with the SoapTypeAttribute."); } else { Console.WriteLine("The requested value was not flagged " + "with the SoapTypeAttribute."); } // Print the XML element and the XML namespace. Console.WriteLine("The XML element for the type " + "ExampleNamespace.ExampleClass is {0}.", xmlElement); Console.WriteLine("The XML namespace for the type " + "ExampleNamespace.ExampleClass is {0}.", xmlNamespace);


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に収録されているすべての辞書からSoapServices.GetXmlElementForInteropType メソッドを検索する場合は、下記のリンクをクリックしてください。

- SoapServices.GetXmlElementForInteropType メソッドのページへのリンク