Udostępnij za pośrednictwem


SdkContext.RandomResourceNames(String, Int32, Int32) Method

Definition

Generates the specified number of random resource names with the same prefix.

public static string[] RandomResourceNames (string prefix, int maxLen, int count);
static member RandomResourceNames : string * int * int -> string[]
Public Shared Function RandomResourceNames (prefix As String, maxLen As Integer, count As Integer) As String()

Parameters

prefix
String

the prefix to be used if possible

maxLen
Int32

the maximum length for the random generated name

count
Int32

the number of names to generate

Returns

String[]

random names

Applies to