SoapHexBinary.Value 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置数字的十六进制表示形式。
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();