SoapServices.DecodeXmlNamespaceForClrTypeNamespace メソッド

定義

指定された共通言語ランタイム名前空間から XML 名前空間とアセンブリ名をデコードします。

public:
 static bool DecodeXmlNamespaceForClrTypeNamespace(System::String ^ inNamespace, [Runtime::InteropServices::Out] System::String ^ % typeNamespace, [Runtime::InteropServices::Out] System::String ^ % assemblyName);
public static bool DecodeXmlNamespaceForClrTypeNamespace(string inNamespace, out string typeNamespace, out string assemblyName);
[System.Security.SecurityCritical]
public static bool DecodeXmlNamespaceForClrTypeNamespace(string inNamespace, out string typeNamespace, out string assemblyName);
static member DecodeXmlNamespaceForClrTypeNamespace : string * string * string -> bool
[<System.Security.SecurityCritical>]
static member DecodeXmlNamespaceForClrTypeNamespace : string * string * string -> bool
Public Shared Function DecodeXmlNamespaceForClrTypeNamespace (inNamespace As String, ByRef typeNamespace As String, ByRef assemblyName As String) As Boolean

パラメーター

inNamespace
String

共通言語ランタイム名前空間。

typeNamespace
String

このメソッドから制御が戻るときに、デコードされた名前空間名を保持する String が含まれます。 このパラメーターは初期化せずに渡されます。

assemblyName
String

このメソッドから制御が戻るときに、デコードされたアセンブリ名を保持する String が格納されます。 このパラメーターは初期化せずに渡されます。

返品

true 名前空間とアセンブリ名が正常にデコードされた場合。それ以外の場合は false

属性

例外

inNamespace パラメーターがnullまたは空です。

直前の呼び出し元にはインフラストラクチャアクセス許可がありません。

次のコード例は、このメソッドの使用方法を示しています。 このコード例は、 SoapServices クラスに提供されるより大きな例の一部です。

// Extract a CLR namespace and assembly name from an XML namespace.
String^ typeNamespace;
String^ assemblyName;
SoapServices::DecodeXmlNamespaceForClrTypeNamespace(
   xmlNamespace,typeNamespace,assemblyName );
Console::WriteLine( L"The name of the CLR namespace is {0}.", typeNamespace );
Console::WriteLine( L"The name of the CLR assembly is {0}.", assemblyName );
// Extract a CLR namespace and assembly name from an XML namespace.
string typeNamespace;
string assemblyName;
SoapServices.DecodeXmlNamespaceForClrTypeNamespace(xmlNamespace,
    out typeNamespace, out assemblyName);
Console.WriteLine("The name of the CLR namespace is {0}.", 
    typeNamespace);
Console.WriteLine("The name of the CLR assembly is {0}.", 
    assemblyName);

注釈

.NET Framework が XML ストリームを解析するときは、ストリームから読み取った XML を共通言語ランタイム型に変換する方法を知っている必要があります。 .NET Framework で XML ストリームを生成および解析する方法を指定する情報は、System.Runtime.Remoting.Metadata 名前空間にあるカスタム属性に格納されます。 構成ファイルでこの情報を指定する方法は 2 つあります。マッピングを明示的に指定するか、プリロードするオブジェクトの種類を指定します。 現在のメソッドでは、このようなマッピングの取得がサポートされています。

適用対象