Random.GetHexString 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetHexString(Int32, Boolean) |
建立一個充滿隨機十六進位字元的字串。 |
| GetHexString(Span<Char>, Boolean) |
用隨機的十六進位字元填滿緩衝區。 |
GetHexString(Int32, Boolean)
- 來源:
- Random.cs
- 來源:
- Random.cs
建立一個充滿隨機十六進位字元的字串。
public string GetHexString(int stringLength, bool lowercase = false);
member this.GetHexString : int * bool -> string
Public Function GetHexString (stringLength As Integer, Optional lowercase As Boolean = false) As String
參數
- stringLength
- Int32
要製作的繩子長度。
傳回
一個由隨機十六進位字元填充的字串。