GetRandomText メソッド
| 編集/提案 ソースを表示GetRandomText()
英数字と記号をランダムに並べた8~64文字の文字列を生成します。 生成された文字列はファイル名に使用できます。
宣言
public static string GetRandomText()戻り値
| 型 | 説明 | 
|---|---|
| System.String | 生成された結果の分からない文字列です。 | 
GetRandomText(Int32, Int32)
英数字と記号をランダムに並べた文字列を生成します。 文字数は指定された範囲から自動的に決定します。 生成された文字列はファイル名に使用できます。
宣言
public static string GetRandomText(int min, int max)引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.Int32 | min | 最小の文字数です。 | 
| System.Int32 | max | 最大の文字数です。 | 
戻り値
| 型 | 説明 | 
|---|---|
| System.String | 生成された結果の分からない文字列です。 | 
GetRandomText(Int32)
英数字と記号をランダムに並べた文字列を生成します。 生成された文字列はファイル名に使用できます。
宣言
public static string GetRandomText(int len)引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.Int32 | len | 生成される文字列の長さです。 | 
戻り値
| 型 | 説明 | 
|---|---|
| System.String | 生成された結果の分からない文字列です。 | 
GetRandomText(Int32, Int32, IUtilityService)
英数字と記号をランダムに並べた文字列を生成します。 文字数は指定された範囲から自動的に決定します。 生成された文字列はファイル名に使用できます。
宣言
public static string GetRandomText(int min, int max, IUtilityService service)引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.Int32 | min | 最小の文字数です。 | 
| System.Int32 | max | 最大の文字数です。 | 
| IUtilityService | service | ExapisSOP.Utilsサービスオブジェクトです。 | 
戻り値
| 型 | 説明 | 
|---|---|
| System.String | 生成された結果の分からない文字列です。 | 
GetRandomText(Int32, IUtilityService)
英数字と記号をランダムに並べた文字列を生成します。 生成された文字列はファイル名に使用できます。
宣言
public static string GetRandomText(int len, IUtilityService service)引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.Int32 | len | 生成される文字列の長さです。 | 
| IUtilityService | service | ExapisSOP.Utilsサービスオブジェクトです。 | 
戻り値
| 型 | 説明 | 
|---|---|
| System.String | 生成された結果の分からない文字列です。 | 
GetRandomText(Int32, Int32, IRandom)
英数字と記号をランダムに並べた文字列を生成します。 文字数は指定された範囲から自動的に決定します。 生成された文字列はファイル名に使用できます。
宣言
public static string GetRandomText(int min, int max, IRandom random)引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.Int32 | min | 最小の文字数です。 | 
| System.Int32 | max | 最大の文字数です。 | 
| IRandom | random | 疑似乱数生成器です。 | 
戻り値
| 型 | 説明 | 
|---|---|
| System.String | 生成された結果の分からない文字列です。 | 
GetRandomText(Int32, IRandom)
英数字と記号をランダムに並べた文字列を生成します。 生成された文字列はファイル名に使用できます。
宣言
public static string GetRandomText(int length, IRandom random)引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.Int32 | length | 生成される文字列の長さです。 | 
| IRandom | random | 疑似乱数生成器です。 | 
戻り値
| 型 | 説明 | 
|---|---|
| System.String | 生成された結果の分からない文字列です。 |