Encrypts a shapefile.


Namespace: AspMap
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Sub Encrypt( _ 
   ByVal inputFile As String,  _ 
   ByVal encryptedFile As String,  _ 
   ByVal password As String _ 
)
C#
public void Encrypt(
   string inputFile,
   string encryptedFile,
   string password
)
C++
public:
 void Encrypt(
   String inputFile,
   String encryptedFile,
   String password
) sealed 
J#
public void Encrypt(
   string inputFile,
   string encryptedFile,
   string password
)
JScript
public  function Encrypt(
   inputFile : String,
   encryptedFile : String,
   password : String
)

Parameters

inputFile
String that contains the name of the shapefile to encrypt.
encryptedFile
String that contains the name of the shapefile that contains the encrypted data.
password
String that contains the encryption password used to encrypt the file.

Exceptions

Exception TypeCondition
ExceptionThrown when an error occurs.

Example

 Copy Code
Tools tools = new Tools();
tools.Encrypt(@"c:\data\world.shp", @"c:\encrypted_data\world.shp");

See Also