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

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

SoapServices.GetInteropFieldTypeAndNameFromXmlElement メソッド

提供されXML 要素名、名前空間、および格納オブジェクトの型からフィールドType と名前を取得します

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

Public Shared Sub GetInteropFieldTypeAndNameFromXmlElement
 ( _
    containingType As Type, _
    xmlElement As String, _
    xmlNamespace As String, _
    <OutAttribute> ByRef type As Type,
 _
    <OutAttribute> ByRef name As String
 _
)
Dim containingType As Type
Dim xmlElement As String
Dim xmlNamespace As String
Dim type As Type
Dim name As String

SoapServices.GetInteropFieldTypeAndNameFromXmlElement(containingType, xmlElement,
 xmlNamespace, type, name)
public static void GetInteropFieldTypeAndNameFromXmlElement
 (
    Type containingType,
    string xmlElement,
    string xmlNamespace,
    out Type type,
    out string name
)
public:
static void GetInteropFieldTypeAndNameFromXmlElement
 (
    Type^ containingType, 
    String^ xmlElement, 
    String^ xmlNamespace, 
    [OutAttribute] Type^% type, 
    [OutAttribute] String^% name
)
public static void GetInteropFieldTypeAndNameFromXmlElement
 (
    Type containingType, 
    String xmlElement, 
    String xmlNamespace, 
    /** @attribute OutAttribute() */ /** @ref */ Type type, 
    /** @attribute OutAttribute() */ /** @ref */ String name
)
JScript では、値型引数参照渡しされません。

パラメータ

containingType

フィールド格納しているオブジェクトType

xmlElement

フィールドXML 要素名。

xmlNamespace

フィールド種類XML 名前空間

type

このメソッド返されるときに、フィールドType格納します。このパラメータ初期化せずに渡されます。

name

このメソッド返されるときに、フィールドの名前を保持している String格納します。このパラメータ初期化せずに渡されます。

例外例外
解説解説
使用例使用例

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

// Get the name and the type of the field using its XML 
// element name and its XML namespace. For this query to work,
// the containing type must be preloaded, and the XML element 
// name and the XML namespace must be explicitly declared on 
// the field using a SoapFieldAttribute.

// Preload the containing type.
SoapServices.PreLoad(typeof(ExampleNamespace.ExampleClass));

// Get the name and the type of a field that will be 
// serialized as an XML element.
Type containingType = typeof(ExampleNamespace.ExampleClass);
string xmlElementNamespace = 
    "http://example.org/ExampleFieldNamespace";
string xmlElementName = "ExampleFieldElementName";
Type fieldType;
string fieldName;
SoapServices.GetInteropFieldTypeAndNameFromXmlElement(
    containingType, xmlElementName, xmlElementNamespace, 
    out fieldType, out fieldName);
Console.WriteLine(
    "The type of the field is {0}.",
    fieldType);
Console.WriteLine(
    "The name of the field is {0}.",
    fieldName);

// Get the name and the type of a field that will be 
// serialized as an XML attribute.
string xmlAttributeNamespace = 
    "http://example.org/ExampleAttributeNamespace";
string xmlAttributeName = "ExampleFieldAttributeName";
SoapServices.GetInteropFieldTypeAndNameFromXmlAttribute(
    containingType, xmlAttributeName, xmlAttributeNamespace, 
    out fieldType, out fieldName);
Console.WriteLine(
    "The type of the field is {0}.",
    fieldType);
Console.WriteLine(
    "The name of the field is {0}.",
    fieldName);
// Get the name and the type of the field using its XML
// element name and its XML namespace. For this query to work,
// the containing type must be preloaded, and the XML element
// name and the XML namespace must be explicitly declared on
// the field using a SoapFieldAttribute.
// Preload the containing type.
SoapServices::PreLoad( ExampleNamespace::ExampleClass::typeid );

// Get the name and the type of a field that will be
// serialized as an XML element.
Type^ containingType = ExampleNamespace::ExampleClass::typeid;
String^ xmlElementNamespace = L"http://example.org/ExampleFieldNamespace";
String^ xmlElementName = L"ExampleFieldElementName";
Type^ fieldType;
String^ fieldName;
SoapServices::GetInteropFieldTypeAndNameFromXmlElement(
   containingType,xmlElementName,xmlElementNamespace,fieldType,fieldName );
Console::WriteLine( L"The type of the field is {0}.", fieldType );
Console::WriteLine( L"The name of the field is {0}.", fieldName );

// Get the name and the type of a field that will be
// serialized as an XML attribute.
String^ xmlAttributeNamespace =
   L"http://example.org/ExampleAttributeNamespace";
String^ xmlAttributeName = L"ExampleFieldAttributeName";
SoapServices::GetInteropFieldTypeAndNameFromXmlAttribute(
   containingType,xmlAttributeName,xmlAttributeNamespace,fieldType,fieldName );
Console::WriteLine( L"The type of the field is {0}.", fieldType );
Console::WriteLine( L"The name of the field is {0}.", fieldName );
// Get the name and the type of the field using its XML 
// element name and its XML namespace. For this query to work,
// the containing type must be preloaded, and the XML element 
// name and the XML namespace must be explicitly declared on 
// the field using a SoapFieldAttribute.
// Preload the containing type.
SoapServices.PreLoad(ExampleNamespace.ExampleClass.class.ToType());
// Get the name and the type of a field that will be 
// serialized as an XML element.
Type containingType = ExampleNamespace.ExampleClass.class.ToType();
String xmlElementNamespace = "http://example.org/ExampleFieldNamespace";
String xmlElementName = "ExampleFieldElementName";
Type fieldType = null;
String fieldName = "";
SoapServices.GetInteropFieldTypeAndNameFromXmlElement(containingType, 
    xmlElementName, xmlElementNamespace, fieldType, fieldName);
Console.WriteLine("The type of the field is {0}.", fieldType);
Console.WriteLine("The name of the field is {0}.", fieldName);
// Get the name and the type of a field that will be 
// serialized as an XML attribute.
String xmlAttributeNamespace 
    = "http://example.org/ExampleAttributeNamespace";
String xmlAttributeName = "ExampleFieldAttributeName";
SoapServices.GetInteropFieldTypeAndNameFromXmlAttribute(containingType, 
    xmlAttributeName, xmlAttributeNamespace, fieldType, fieldName);
Console.WriteLine("The type of the field is {0}.", fieldType);
Console.WriteLine("The name of the field is {0}.", fieldName);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapServices クラス
SoapServices メンバ
System.Runtime.Remoting 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2025 GRAS Group, Inc.RSS