SoapServices.CodeXmlNamespaceForClrTypeNamespace(String, String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
제공된 네임스페이스 및 어셈블리 이름에서 공용 언어 런타임 형식 네임스페이스 이름을 반환합니다.
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);
설명
현재 메서드는 .NET Framework 및 SoapSuds 도구에서 공용 언어 런타임 개체 형식에 대한 XML 네임스페이스 이름을 만드는 데 사용됩니다.