SoapServices.CodeXmlNamespaceForClrTypeNamespace(String, String) Metoda

Definice

Vrátí název oboru názvů modulu CLR (Common Language Runtime) ze zadaného oboru názvů a názvů sestavení.

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

Parametry

typeNamespace
String

Obor názvů, který má být kódován.

assemblyName
String

Název sestavení, které má být zakódováno.

Návraty

Název oboru názvů modulu CLR (Common Language Runtime) z poskytnutého oboru názvů a názvů sestavení.

Atributy

Výjimky

Parametry assemblyName jsou typeNamespace buď null nebo prázdné.

Bezprostřední volající nemá oprávnění k infrastruktuře.

Příklady

Následující příklad kódu ukazuje, jak použít tuto metodu. Tento příklad kódu je součástí většího příkladu uvedeného pro třídu 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);

Poznámky

Aktuální metoda je používána rozhraním .NET Framework a nástrojem SoapSuds k vytvoření názvu oboru názvů XML pro typ objektu modulu CLR (Common Language Runtime).

Platí pro