Метод | Описание | |
---|---|---|
HasWhiteCharacter ( string text, string exceptionMessage = null ) : 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.
|
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public static ValidateDirectoryExists ( string directory, string exceptionMessage = null ) : void | ||
directory | string | |
exceptionMessage | string | |
Результат | 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) |
Результат | void |
public static ValidateDnsDoesNotExist ( string dnsName ) : void | ||
dnsName | string | |
Результат | void |
public static ValidateDnsName ( string dnsName, string parameterName ) : void | ||
dnsName | string | |
parameterName | string | |
Результат | void |
public static ValidateFileExists ( string filePath, string exceptionMessage ) : void | ||
filePath | string | |
exceptionMessage | string | |
Результат | void |
public static ValidateFileExtention ( string filePath, string desiredExtention ) : void | ||
filePath | string | |
desiredExtention | string | |
Результат | 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) |
Результат | void |
public static ValidateFileName ( string element, string exceptionMessage = null ) : void | ||
element | string | |
exceptionMessage | string | |
Результат | void |
public static ValidateInternetConnection ( ) : void | ||
Результат | void |
public static ValidateNullArgument ( object item, string exceptionMessage ) : void | ||
item | object | |
exceptionMessage | string | |
Результат | void |
public static ValidatePath ( string path, string exceptionMessage ) : void | ||
path | string | Path to validate |
exceptionMessage | string | message to display if this validation failed |
Результат | void |
public static ValidatePathName ( string element, string exceptionMessage ) : void | ||
element | string | |
exceptionMessage | string | |
Результат | 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 |
Результат | void |