C# Path.GetRandomFileName 方法
返回随机文件夹名或文件名。
public static string GetRandomFileName ();返回
string
随机文件夹名或文件名。
示例
下面的示例显示了方法的输出 GetRandomFileName 。
using System;
using System.IO;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string result = Path.GetRandomFileName();
            Console.WriteLine("Random file name is " + result);
        }
    }
}
/*
 This code produces output similar to the following:
 Random file name is w143kxnu.idj
 Press any key to continue . . .
 */版权声明:本文为YES开发框架网发布内容,转载请附上原文出处连接
post YES开发框架  
 
 

