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 네임스페이스에 있는 사용자 지정 특성에 저장됩니다. 구성 파일에서 이 정보를 지정하는 방법에는 매핑을 명시적으로 지정하거나 미리 로드할 개체 형식을 지정하는 두 가지 방법이 있습니다. 현재 메서드는 이러한 매핑의 검색을 지원합니다.

적용 대상