CodeCarvings.Piczard
ValidateTemporaryFolder(Boolean) Method
See Also  Send Feedback
CodeCarvings.Piczard.Web Namespace > TemporaryFileManager Class > ValidateTemporaryFolder Method : ValidateTemporaryFolder(Boolean) Method

throwException
If true, an IOException is thrown if the current temporary folder is not valid.
Validates the current current temporary folder by ensuring that it exists;  if the "throwException" parameter is true then an IOException is thrown if the directory is not valid.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function ValidateTemporaryFolder( _
   ByVal throwException As Boolean _
) As Boolean
C#  
public static bool ValidateTemporaryFolder( 
   bool throwException
)

Parameters

throwException
If true, an IOException is thrown if the current temporary folder is not valid.

Return Value

true if the current temporary folder is valid; otherwise, false.

Exceptions

Exception Description
System.IO.IOException The current temporary folder is not valid.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.