SoapServices.GetXmlElementForInteropType メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SoapServices.GetXmlElementForInteropType メソッドの意味・解説 

SoapServices.GetXmlElementForInteropType メソッド

特定の型をシリアル化するときに使用する XML 要素情報返します

名前空間: System.Runtime.Remoting
アセンブリ: 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
)
JScript では、値型引数参照渡しされません。

パラメータ

type

XML 要素名前空間の名前を要求したオブジェクト Type

xmlElement

このメソッド返されるときに、指定したオブジェクト型XML 要素名を保持している String格納します。このパラメータ初期化せずに渡されます。

xmlNamespace

このメソッド返されるときに、指定したオブジェクト型XML 名前空間の名前を保持している String格納します。このパラメータ初期化せずに渡されます。

戻り値
要求した値に 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);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapServices クラス
SoapServices メンバ
System.Runtime.Remoting 名前空間
GetInteropFieldTypeAndNameFromXmlElement


このページでは「.NET Framework クラス ライブラリ リファレンス」からSoapServices.GetXmlElementForInteropType メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSoapServices.GetXmlElementForInteropType メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSoapServices.GetXmlElementForInteropType メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「SoapServices.GetXmlElementForInteropType メソッド」の関連用語

SoapServices.GetXmlElementForInteropType メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SoapServices.GetXmlElementForInteropType メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS