SoapQName.Namespace 属性

定义

获取或设置由 Key 引用的命名空间。Gets or sets the namespace that is referenced by 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

String,包含 Key 引用的命名空间。A String that contains the namespace that is referenced by Key.

示例

下面的代码示例说明如何使用 Namespace 属性。The following code example shows how to use the Namespace property. 此代码示例是为类提供的更大示例的一部分 SoapQNameThis code example is part of a larger example that is provided for the SoapQName class.

// 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);

适用于