SoftBasicIsByteTokenEquel 方法 |
判断两个数据的令牌是否相等
Determines whether the tokens of two data are equal
命名空间:
HslCommunication.BasicFramework
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static bool IsByteTokenEquel(
byte[] head,
Guid token
)
Public Shared Function IsByteTokenEquel (
head As Byte(),
token As Guid
) As Boolean
public:
static bool IsByteTokenEquel(
array<unsigned char>^ head,
Guid token
)
static member IsByteTokenEquel :
head : byte[] *
token : Guid -> bool
参数
- head
- 类型:SystemByte
字节数据 - token
- 类型:SystemGuid
GUID数据
返回值
类型:
Boolean返回是否相等
示例 Guid guid = new Guid( "56b79cac-91e8-460f-95ce-72b39e19185e" );
byte[] b2 = new byte[32];
guid.ToByteArray( ).CopyTo( b2, 12 );
Console.WriteLine( SoftBasic.IsByteTokenEquel( b2, guid ) );
参见