SoapServices.XmlNsForClrTypeWithNsAndAssembly 속성

정의

공용 언어 런타임 네임스페이스와 어셈블리가 모두 있는 공용 언어 런타임 클래스의 XML 인코딩에 사용해야 하는 기본 XML 네임스페이스 접두사를 가져옵니다.

public:
 static property System::String ^ XmlNsForClrTypeWithNsAndAssembly { System::String ^ get(); };
public static string XmlNsForClrTypeWithNsAndAssembly { get; }
static member XmlNsForClrTypeWithNsAndAssembly : string
Public Shared ReadOnly Property XmlNsForClrTypeWithNsAndAssembly As String

속성 값

공용 언어 런타임 네임스페이스와 어셈블리가 모두 있는 공용 언어 런타임 클래스의 XML 인코딩에 사용해야 하는 기본 XML 네임스페이스 접두사입니다.

예외

즉시 호출자에게 인프라 권한이 없습니다.

예제

다음 코드 예제에서는이 속성을 사용 하는 방법을 보여 있습니다. 이 코드 예제는 클래스에 제공된 더 큰 예제의 SoapServices 일부입니다.

// Print the XML namespace for the CLR types
// that have both an assembly and a common language runtime
// namespace.
Console::WriteLine( L"The XML namespace for the CLR types "
L"that have both an assembly and a namespace, is {0}.",
   SoapServices::XmlNsForClrTypeWithNsAndAssembly );
// Print the XML namespace for the CLR types 
// that have both an assembly and a common language runtime 
// namespace.
Console.WriteLine(
    "The XML namespace for the CLR types " +
    "that have both an assembly and a namespace, is {0}.",
    SoapServices.XmlNsForClrTypeWithNsAndAssembly);

설명

WSDL 및 SOAP 프로토콜은 공용 언어 런타임 클래스를 XML 네임스페이스로 인코딩합니다. 현재 속성은 XML 네임스페이스의 형식을 지정합니다. 공용 언어 런타임 클래스에 어셈블리와 공용 언어 런타임 네임스페이스가 있는 경우 현재 속성은 사용되는 기본 XML 네임스페이스를 반환합니다.

적용 대상