创建Guid:
System.Guid.NewGuid().ToString(format)  

format: N, D, B, P

格式说明符 返回值的格式    

N 32位:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
如:e92b8e30a6e541f6a6b9188230a23dd2

D 由连字符分隔的32位数字:                                    
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
如:e92b8e30-a6e5-41f6-a6b9-188230a23dd2

B 括在大括号中、由连字符分隔的32位数字:      
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
如:{e92b8e30-a6e5-41f6-a6b9-188230a23dd2}

P 括在圆括号中、由连字符分隔的32位数字:        
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
如:(e92b8e30-a6e5-41f6-a6b9-188230a23dd2)

相关文章:

  • 2022-12-23
  • 2021-08-05
  • 2021-11-13
  • 2022-12-23
  • 2022-02-22
  • 2022-02-08
  • 2022-12-23
猜你喜欢
  • 2021-09-21
  • 2021-11-07
  • 2022-02-19
  • 2021-07-31
  • 2022-12-23
相关资源
相似解决方案