System.IO.File.Encrypt C# (CSharp) Méthode

Encrypt() public static méthode

public static Encrypt ( String path ) : void
path String
Résultat 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

Exemple #1
0
 public static void Encrypt(string path)
 {
     if (_provider == null)
     {
         File.Encrypt(path);
     }
     else
     {
         _provider.Encrypt(path);
     }
 }
All Usage Examples Of System.IO.File::Encrypt