Google和Facebook都可以在Ping Identity或Microsoft ACS等安全联合设置中充当身份提供商.
有谁知道是否有可能将Apple Id添加为身份提供者?
对于我的WPF应用程序,我必须创建包含图像文件的文件夹,例如:C:\ Pearl\Src\TEMP.稍后当不需要这些文件时,我将以编程方式删除文件夹.但我得到"拒绝进入路径".我还尝试为创建的临时文件夹分配访问权限,但没有多大用处.
using System.IO;
var activeDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var dInfo = Directory.GetParent(Path.GetDirectoryName(activeDir);
var dSecurity = dInfo.GetAccessControl();
dSecurity.AddAccessRule(new FileSystemAccessRule(@"ATSDEV\ABCD", FileSystemRights.DeleteSubdirectoriesAndFiles, AccessControlType.Allow));
dInfo.SetAccessControl(dSecurity); // Set the new access settings.
var ImageDir = Path.Combine(dInfo.ToString(), "TEMP");
System.IO.Directory.CreateDirectory(ImageDir, dSecurity);
Run Code Online (Sandbox Code Playgroud)