Method | Description | |
---|---|---|
HasWhiteCharacter ( string text, string exceptionMessage = null ) : void | ||
IsGuid ( string candidate ) : void | ||
ValidateDirectoryExists ( string directory, string exceptionMessage = null ) : void | ||
ValidateDirectoryFull ( string directoryNameOnDisk, string directoryName ) : void |
Validates against given directory
|
|
ValidateDnsDoesNotExist ( string dnsName ) : void | ||
ValidateDnsName ( string dnsName, string parameterName ) : void | ||
ValidateFileExists ( string filePath, string exceptionMessage ) : void | ||
ValidateFileExtention ( string filePath, string desiredExtention ) : void | ||
ValidateFileFull ( string fileNameOnDisk, string fileName ) : void |
Validates against given file
|
|
ValidateFileName ( string element, string exceptionMessage = null ) : void | ||
ValidateInternetConnection ( ) : void | ||
ValidateNullArgument ( object item, string exceptionMessage ) : void | ||
ValidatePath ( string path, string exceptionMessage ) : void |
Make validation for given path.
|
|
ValidatePathName ( string element, string exceptionMessage ) : void | ||
ValidateStringIsNullOrEmpty ( string data, string messageData, bool useDefaultMessage = true ) : void |
Validates against given string if null or empty.
|
Method | Description | |
---|---|---|
BasicFileAndDirectoryValidation ( string fullPath, string name ) : void | ||
InternetGetConnectedState ( InternetConnectionState &lpdwFlags, int dwReserved ) : bool |
public static HasWhiteCharacter ( string text, string exceptionMessage = null ) : void | ||
text | string | |
exceptionMessage | string | |
return | void |
public static IsGuid ( string candidate ) : void | ||
candidate | string | |
return | void |
public static ValidateDirectoryExists ( string directory, string exceptionMessage = null ) : void | ||
directory | string | |
exceptionMessage | string | |
return | void |
public static ValidateDirectoryFull ( string directoryNameOnDisk, string directoryName ) : void | ||
directoryNameOnDisk | string | Directory name |
directoryName | string | Name which you use to identify that directory to user (i.e. AzureSdkDirectory) |
return | void |
public static ValidateDnsDoesNotExist ( string dnsName ) : void | ||
dnsName | string | |
return | void |
public static ValidateDnsName ( string dnsName, string parameterName ) : void | ||
dnsName | string | |
parameterName | string | |
return | void |
public static ValidateFileExists ( string filePath, string exceptionMessage ) : void | ||
filePath | string | |
exceptionMessage | string | |
return | void |
public static ValidateFileExtention ( string filePath, string desiredExtention ) : void | ||
filePath | string | |
desiredExtention | string | |
return | void |
public static ValidateFileFull ( string fileNameOnDisk, string fileName ) : void | ||
fileNameOnDisk | string | File name |
fileName | string | Name which you use to identify that directory to user (i.e. Service Settings) |
return | void |
public static ValidateFileName ( string element, string exceptionMessage = null ) : void | ||
element | string | |
exceptionMessage | string | |
return | void |
public static ValidateInternetConnection ( ) : void | ||
return | void |
public static ValidateNullArgument ( object item, string exceptionMessage ) : void | ||
item | object | |
exceptionMessage | string | |
return | void |
public static ValidatePath ( string path, string exceptionMessage ) : void | ||
path | string | Path to validate |
exceptionMessage | string | message to display if this validation failed |
return | void |
public static ValidatePathName ( string element, string exceptionMessage ) : void | ||
element | string | |
exceptionMessage | string | |
return | void |
public static ValidateStringIsNullOrEmpty ( string data, string messageData, bool useDefaultMessage = true ) : void | ||
data | string | string variable to validate |
messageData | string | This parameter is used when the validation fails. It can contain actual message to display /// or parameter name to display with default message |
useDefaultMessage | bool | Indicates either to use messageData as actual message or parameter name |
return | void |