SoapQName.Key 属性

定义

获取或设置限定名的命名空间别名。

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

属性值

一个 String 包含限定名的命名空间别名。

示例

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

// Print the key the SoapQName object.
Console::WriteLine( L"The key of the SoapQName object is {0}.",
   soapQNameInstance->Key );
// Print the key the SoapQName object.
Console.WriteLine("The key of the SoapQName " +
    "object is {0}.", soapQNameInstance.Key);

适用于