コード例 #1
0
ファイル: DirectoryWrap.cs プロジェクト: magol/SystemWrapper
 public IDirectoryInfoWrap CreateDirectory(string path, IDirectorySecurityWrap directorySecurity)
 {
     if (directorySecurity == null)
         throw new ArgumentNullException("directorySecurity");
     DirectoryInfo di = Directory.CreateDirectory(path, directorySecurity.DirectorySecurityInstance);
     return new DirectoryInfoWrap(di);
 }
コード例 #2
0
 /// <inheritdoc />
 public void SetAccessControl(string path, IDirectorySecurityWrap directorySecurity)
 {
     if (directorySecurity == null)
     {
         throw new ArgumentNullException("directorySecurity");
     }
     Directory.SetAccessControl(path, directorySecurity.DirectorySecurityInstance);
 }
コード例 #3
0
        /// <inheritdoc />
        public IDirectoryInfoWrap CreateDirectory(string path, IDirectorySecurityWrap directorySecurity)
        {
            if (directorySecurity == null)
            {
                throw new ArgumentNullException("directorySecurity");
            }
            DirectoryInfo di = Directory.CreateDirectory(path, directorySecurity.DirectorySecurityInstance);

            return(new DirectoryInfoWrap(di));
        }
コード例 #4
0
        public void GetAccessControl_test()
        {
            IDirectorySecurityWrap directorySecurityWrap = _directoryWrap.GetAccessControl(path);

            Assert.IsNotNull(directorySecurityWrap.DirectorySecurityInstance);
        }
コード例 #5
0
 public void SetAccessControl(IDirectorySecurityWrap directorySecurity)
 {
     DirectoryInfo.SetAccessControl(directorySecurity.DirectorySecurityInstance);
 }
コード例 #6
0
 public IDirectoryInfoWrap CreateSubdirectory(string path, IDirectorySecurityWrap directorySecurity)
 {
     return new DirectoryInfoWrap(DirectoryInfo.CreateSubdirectory(path, directorySecurity.DirectorySecurityInstance));
 }
コード例 #7
0
 public void Create(IDirectorySecurityWrap directorySecurity)
 {
     DirectoryInfo.Create(directorySecurity.DirectorySecurityInstance);
 }
コード例 #8
0
 /// <inheritdoc />
 public void SetAccessControl(IDirectorySecurityWrap directorySecurity)
 {
     DirectoryInfo.SetAccessControl(directorySecurity.DirectorySecurityInstance);
 }
コード例 #9
0
 /// <inheritdoc />
 public IDirectoryInfoWrap CreateSubdirectory(string path, IDirectorySecurityWrap directorySecurity)
 {
     return(new DirectoryInfoWrap(DirectoryInfo.CreateSubdirectory(path, directorySecurity.DirectorySecurityInstance)));
 }
コード例 #10
0
 /// <inheritdoc />
 public void Create(IDirectorySecurityWrap directorySecurity)
 {
     DirectoryInfo.Create(directorySecurity.DirectorySecurityInstance);
 }
コード例 #11
0
ファイル: DirectoryWrap.cs プロジェクト: magol/SystemWrapper
 public void SetAccessControl(string path, IDirectorySecurityWrap directorySecurity)
 {
     if (directorySecurity == null)
         throw new ArgumentNullException("directorySecurity");
     Directory.SetAccessControl(path, directorySecurity.DirectorySecurityInstance);
 }