The FileCacheRelease function releases the associated file cache entry for the specified opened file on the MVSP Server.


Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)

Syntax

Visual Basic (Declaration)
Public Function FileCacheRelease( _ 
   ByVal filePath As String _ 
) As Boolean
C#
public bool FileCacheRelease(
   string filePath
)
C++
public:
 bool FileCacheRelease(
   String filePath
) sealed 
J#
public bool FileCacheRelease(
   string filePath
)
JScript
public  function FileCacheRelease(
   filePath : String
) : bool

Parameters

filePath
is the name of the file that you wish to release the associated file cache entry

Return Value

True

Remarks

If no file cache entry exists associated with the file name, no operation takes place

Example connects and reads the record 1 and then releases the cache entry associated with the CUSTOMERS file

 Copy Code
 Dim returncode as boolean
 Dim mvsp as new rocketsoftware.MVSP.Pick
 Dim params as string = ""
 Dim results as string = ""
 returncode = mvsp.Connect("localhost",9000,"dm","")
 If returncode = True then
    returncode = mvsp.Logto("MVDEMO","")
    If returncode = True then
       results = mvsp.FileRead("CUSTOMERS","1")
       If mvsp.statusCode = 0 then
          returncode = mvsp.FileCacheRelease("CUSTOMERS")
       End if
    End if
 End if
 returncode = mvsp.CloseConnection()
 

See Also