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

id
The temporary file id to validate.
throwException
If true, an Exception is thrown if the temporary file id is not valid.
Determines if the provided temporary file id is valid; if the "throwException" parameter is true then an Exception is thrown if the value is not valid.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function ValidateTemporaryFileId( _
   ByVal id As String, _
   ByVal throwException As Boolean _
) As Boolean
C#  
public static bool ValidateTemporaryFileId( 
   string id,
   bool throwException
)

Parameters

id
The temporary file id to validate.
throwException
If true, an Exception is thrown if the temporary file id is not valid.

Return Value

true if the temporary file id is valid; otherwise, false.

Exceptions

Exception Description
System.Exception The temporary file id is not valid.

Remarks

Use the GetNewTemporaryFileId method to generate valid temporary file ids.

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.