SoapQName.Namespace 属性

定义

获取或设置由 Key 引用的命名空间。

public:
 property System::String ^ Namespace { System::String ^ get(); void set(System::String ^ value); };
public string Namespace { get; set; }
member this.Namespace : string with get, set
Public Property Namespace As String

属性值

String,包含 Key 引用的命名空间。

示例

下面的代码示例说明如何使用 Namespace 属性。 此代码示例是为 SoapQName 类提供的一个更大示例的一部分。

// Print the namespace of the SoapQName class.
Console::WriteLine( L"The namespace for this instance of SoapQName is {0}.",
   soapQNameInstance->Namespace );
// Print the namespace of the SoapQName class.
Console.WriteLine("The namespace for this instance of SoapQName " +
    "is {0}.", soapQNameInstance.Namespace);

适用于