Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要函数来生成一个唯一的字符串,比如:
DIM uniStr as string = generateUniStr()
是否有任何功能已经这样做了?
您可以使用
Dim uniStr = Guid.NewGuid().ToString()
您可以生成 GUID 并将其字符串化。
您可能想提供更多关于您真正需要的内容的详细信息,因为可能有更好的解决方案。