System.IO.File.Encrypt C# (CSharp) Method

Encrypt() public static method

public static Encrypt ( String path ) : void
path String
return void
        public static void Encrypt(String path)
        {
            if (path == null)
                throw new ArgumentNullException(nameof(path));

            // TODO: Not supported on Unix or in WinRt, and the EncryptFile API isn't currently
            // available in OneCore.  For now, we just throw PNSE everywhere.  When the API is
            // available, we can put this into the FileSystem abstraction and implement it
            // properly for Win32.

            throw new PlatformNotSupportedException();
        }

Same methods

File::Encrypt ( string path ) : void

Usage Example

コード例 #1
0
ファイル: FileStub.cs プロジェクト: divyang4481/ci-factory
 public static void Encrypt(string path)
 {
     if (_provider == null)
     {
         File.Encrypt(path);
     }
     else
     {
         _provider.Encrypt(path);
     }
 }
All Usage Examples Of System.IO.File::Encrypt