string SrcStr = "admin"; string[] UserNameCvt = SrcStr.Split(','); Roles.AddUsersToRole(UserNameCvt, "Administrator"); 註記:網路上較少此種例子,多為string[] to String (字串陣列轉字串) String.Join(" ", myStringArray);