SoapHexBinary.Value 属性

定义

获取或设置数字的十六进制表示形式。

public:
 property cli::array <System::Byte> ^ Value { cli::array <System::Byte> ^ get(); void set(cli::array <System::Byte> ^ value); };
public byte[] Value { get; set; }
member this.Value : byte[] with get, set
Public Property Value As Byte()

属性值

Byte[]

一个 Byte 数组,它包含数字的十六进制表示形式。

示例

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

// Print the value of the SoapHexBinary object.
Console::Write( L"hexBinary.Value contains:" );
for ( int i = 0; i < hexBinary->Value->Length; ++i )
{
   Console::Write( L" {0}", hexBinary->Value[ i ] );

}
Console::WriteLine();
// Print the value of the SoapHexBinary object.
Console.Write("hexBinary.Value contains:");
for (int i = 0 ; i < hexBinary.Value.Length ; ++i)
{
    Console.Write(" " + hexBinary.Value[i]);
}
Console.WriteLine();

适用于