XML 属性名、名前空間、および格納オブジェクトの Type からフィールドの種類を取得します。
Public Shared Sub GetInteropFieldTypeAndNameFromXmlAttribute( _
ByVal containingType As Type, _ ByVal xmlAttribute As String, _ ByVal xmlNamespace As String, _ <Out()> ByRef type As Type, _ <Out()> ByRef name As String _)
[C#]
public static void GetInteropFieldTypeAndNameFromXmlAttribute(TypecontainingType,stringxmlAttribute,stringxmlNamespace, out Typetype, out stringname);
[C++]
public: static void GetInteropFieldTypeAndNameFromXmlAttribute(Type* containingType,String* xmlAttribute,String* xmlNamespace, [ Out] Type** type, [ Out] String** name);
[JScript]
public static function GetInteropFieldTypeAndNameFromXmlAttribute(
containingType : Type,xmlAttribute : String,xmlNamespace : String,type : Type,name : String);
パラメータ
- containingType
フィールドを格納しているオブジェクトの Type 。 - xmlAttribute
フィールドの種類の XML 属性名。 - xmlNamespace
フィールドの種類の XML 名前空間。 - type
このメソッドが返されるときに、フィールドの Type を格納します。このパラメータは初期化せずに渡されます。 - name
このメソッドが返されるときに、フィールドの名前を保持している String を格納します。このパラメータは初期化せずに渡されます。
例外
例外の種類 | 条件 |
---|---|
SecurityException | 直前の呼び出し元に、インフラストラクチャ アクセス許可がありません。 |
解説
.NET Framework によって読み取られる格納オブジェクトの型、XML 属性、および XML 名前空間を指定すると、現在のメソッドは実際の共通言語ランタイムのフィールド名とフィールドの種類を返します。その後、.NET Framework はこの情報を使用して、XML ストリームから読み取ったデータをこのフィールドに設定します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
.NET Framework セキュリティ:
- SecurityPermission (インフラストラクチャ コードを操作するために必要なアクセス許可) SecurityPermissionFlag.Infrastructure (関連する列挙体)
参照
SoapServices クラス | SoapServices メンバ | System.Runtime.Remoting 名前空間