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

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

SoapServices.GetXmlTypeForInteropType メソッド

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

名前空間: System.Runtime.Remoting
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Shared Function GetXmlTypeForInteropType
 ( _
    type As Type, _
    <OutAttribute> ByRef xmlType As String,
 _
    <OutAttribute> ByRef xmlTypeNamespace As
 String _
) As Boolean
Dim type As Type
Dim xmlType As String
Dim xmlTypeNamespace As String
Dim returnValue As Boolean

returnValue = SoapServices.GetXmlTypeForInteropType(type, xmlType, xmlTypeNamespace)
public static bool GetXmlTypeForInteropType
 (
    Type type,
    out string xmlType,
    out string xmlTypeNamespace
)
public:
static bool GetXmlTypeForInteropType (
    Type^ type, 
    [OutAttribute] String^% xmlType, 
    [OutAttribute] String^% xmlTypeNamespace
)
public static boolean GetXmlTypeForInteropType
 (
    Type type, 
    /** @attribute OutAttribute() */ /** @ref */ String xmlType, 
    /** @attribute OutAttribute() */ /** @ref */ String xmlTypeNamespace
)
JScript では、値型引数参照渡しされません。

パラメータ

type

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

xmlType

指定したオブジェクト TypeXML 型。

xmlTypeNamespace

指定したオブジェクト TypeXML 型名前空間。

戻り値
要求した値に SoapTypeAttribute のフラグ設定されている場合trueそれ以外場合false

例外例外
使用例使用例

このメソッド使用する方法次のコード例示します。このコード例は、SoapServices クラストピック取り上げているコード例一部分です。

// Get the XML type name and the XML type namespace for 
// an Interop type.
string xmlTypeName;
string xmlTypeNamespace;
isSoapTypeAttribute =
    SoapServices.GetXmlTypeForInteropType(
    typeof(ExampleNamespace.ExampleClass), 
    out xmlTypeName, out xmlTypeNamespace);

// 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 type name and the XML type namespace.
Console.WriteLine(
    "The XML type for the type " +
    "ExampleNamespace.ExampleClass is {0}.",
    xmlTypeName);
Console.WriteLine(
    "The XML type namespace for the type
 " +
    "ExampleNamespace.ExampleClass is {0}.",
    xmlTypeNamespace);
// Get the XML type name and the XML type namespace for
// an Interop type.
String^ xmlTypeName;
String^ xmlTypeNamespace;
isSoapTypeAttribute = SoapServices::GetXmlTypeForInteropType( ExampleNamespace::ExampleClass::typeid,xmlTypeName,xmlTypeNamespace
 );

// 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 type name and the XML type namespace.
Console::WriteLine( L"The XML type for the type "
L"ExampleNamespace.ExampleClass is {0}.", xmlTypeName );
Console::WriteLine( L"The XML type namespace for
 the type "
L"ExampleNamespace.ExampleClass is {0}.", xmlTypeNamespace );
// Get the XML type name and the XML type namespace for 
// an Interop type.
String xmlTypeName = "";
String xmlTypeNamespace = "";
isSoapTypeAttribute = SoapServices.GetXmlTypeForInteropType(
    ExampleNamespace.ExampleClass.class.ToType(), xmlTypeName,
 
    xmlTypeNamespace);
// 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 type name and the XML type namespace.
Console.WriteLine("The XML type for the type " 
    + "ExampleNamespace.ExampleClass is {0}.", xmlTypeName);
Console.WriteLine("The XML type namespace for
 the type " 
    + "ExampleNamespace.ExampleClass is {0}.", xmlTypeNamespace);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapServices クラス
SoapServices メンバ
System.Runtime.Remoting 名前空間
GetInteropFieldTypeAndNameFromXmlElement


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

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2025 GRAS Group, Inc.RSS