@Override
    public CloudFileShare getShare() throws StorageException, URISyntaxException {
        if (this.share == null) {
            this.share = this.fileServiceClient.getShareReference(PathUtility.getShareNameFromUri(this.getUri(),
                    this.fileServiceClient.isUsePathStyleUris()));
        }
        return this.share;
    }
@Override
    public CloudFileShare getShare() throws StorageException, URISyntaxException {
        if (this.share == null) {
            this.share = this.fileServiceClient.getShareReference(PathUtility.getShareNameFromUri(this.getUri(),
                    this.fileServiceClient.isUsePathStyleUris()));
        }
        return this.share;
    }
@ Override public CloudFileShare getShare ( ) throws StorageException , URISyntaxException { if ( this . share == null ) { this . share = this . fileServiceClient . getShareReference ( PathUtility . getShareNameFromUri ( this . getUri ( ) , this . fileServiceClient . isUsePathStyleUris ( ) ) ) ; } return this . share ; }
Returns the share for this directory.

@return A {@link CloudFileShare} that represents the share for this directory.

@throws StorageException
If a storage service error occurred.
@throws URISyntaxException
If the resource URI is invalid.
Returns the share for this directory .