SoapServices.CodeXmlNamespaceForClrTypeNamespace(String, String) メソッド

定義

指定された名前空間とアセンブリ名から共通言語ランタイム型の名前空間名を返します。

public:
 static System::String ^ CodeXmlNamespaceForClrTypeNamespace(System::String ^ typeNamespace, System::String ^ assemblyName);
public static string CodeXmlNamespaceForClrTypeNamespace(string typeNamespace, string assemblyName);
[System.Security.SecurityCritical]
public static string CodeXmlNamespaceForClrTypeNamespace(string typeNamespace, string assemblyName);
static member CodeXmlNamespaceForClrTypeNamespace : string * string -> string
[<System.Security.SecurityCritical>]
static member CodeXmlNamespaceForClrTypeNamespace : string * string -> string
Public Shared Function CodeXmlNamespaceForClrTypeNamespace (typeNamespace As String, assemblyName As String) As String

パラメーター

typeNamespace
String

コード化する名前空間。

assemblyName
String

コード化するアセンブリの名前。

返品

指定された名前空間とアセンブリ名からの共通言語ランタイム型の名前空間名。

属性

例外

assemblyNameパラメーターと typeNamespace パラメーターの両方がnullまたは空です。

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

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

// Convert a CLR namespace and assembly name into an XML namespace.
String^ xmlNamespace = SoapServices::CodeXmlNamespaceForClrTypeNamespace(
   L"ExampleNamespace", L"AssemblyName" );
Console::WriteLine( L"The name of the XML namespace is {0}.", xmlNamespace );
// Convert a CLR namespace and assembly name into an XML namespace.
string xmlNamespace = 
    SoapServices.CodeXmlNamespaceForClrTypeNamespace(
    "ExampleNamespace", "AssemblyName");
Console.WriteLine("The name of the XML namespace is {0}.", 
    xmlNamespace);

注釈

現在のメソッドは、共通言語ランタイム オブジェクト型の XML 名前空間名を作成するために、.NET Framework と SoapSuds ツールによって使用されます。

適用対象