Amazon.S3.Transfer.TransferUtilityUploadDirectoryRequest.IsSetDirectory C# (CSharp) Method

IsSetDirectory() private method

Checks if Directory property is set.
private IsSetDirectory ( ) : bool
return bool
        internal bool IsSetDirectory()
        {
            return !System.String.IsNullOrEmpty(this._directory);
        }

Usage Example

Ejemplo n.º 1
0
 void validate(TransferUtilityUploadDirectoryRequest request)
 {
     if (!request.IsSetDirectory())
     {
         throw new ArgumentNullException("directory");
     }
     if (!request.IsSetBucketName())
     {
         throw new ArgumentNullException("bucketName");
     }
     if (!Directory.Exists(request.Directory))
     {
         throw new ArgumentException(string.Format("The directory {0} does not exists!", request.Directory), "directory");
     }
 }
All Usage Examples Of Amazon.S3.Transfer.TransferUtilityUploadDirectoryRequest::IsSetDirectory