SoapServices.IsClrTypeNamespace メソッド
アセンブリ: mscorlib (mscorlib.dll 内)
構文Dim namespaceString As String Dim returnValue As Boolean returnValue = SoapServices.IsClrTypeNamespace(namespaceString)
戻り値
指定した名前空間が共通言語ランタイムに対してネイティブな場合は true。それ以外の場合は false。
例外
解説
使用例このメソッドを使用する方法を次のコード例に示します。このコード例は、SoapServices クラスのトピックで取り上げているコード例の一部分です。
// Determine whether an XML namespace represents a CLR namespace. string clrNamespace = SoapServices.XmlNsForClrType; if (SoapServices.IsClrTypeNamespace(clrNamespace)) { Console.WriteLine( "The namespace {0} is a CLR namespace." , clrNamespace); } else { Console.WriteLine( "The namespace {0} is not a CLR namespace." , clrNamespace); }
// Determine whether an XML namespace represents a CLR namespace. String^ clrNamespace = SoapServices::XmlNsForClrType; if ( SoapServices::IsClrTypeNamespace( clrNamespace ) ) { Console::WriteLine( L"The namespace {0} is a CLR namespace." , clrNamespace ); } else { Console::WriteLine( L"The namespace {0} is not a CLR namespace." , clrNamespace ); }
// Determine whether an XML namespace represents a CLR namespace. String clrNamespace = SoapServices.get_XmlNsForClrType(); if (SoapServices.IsClrTypeNamespace(clrNamespace)) { Console.WriteLine("The namespace {0} is a CLR namespace.", clrNamespace); } else { Console.WriteLine("The namespace {0} is not a CLR namespace.", clrNamespace); }
.NET Framework のセキュリティ- SecurityPermission (インフラストラクチャ コードを操作するために必要なアクセス許可)。SecurityPermissionFlag.Infrastructure (関連する列挙体)
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- SoapServices.IsClrTypeNamespace メソッドのページへのリンク