Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 不适用于azure的参数_Android_Azure Storage_Azure Storage Blobs - Fatal编程技术网

Android 不适用于azure的参数

Android 不适用于azure的参数,android,azure-storage,azure-storage-blobs,Android,Azure Storage,Azure Storage Blobs,类型中的方法delete(对象,TableDeleteCallback) MobileServiceTableBase不适用于 参数(JsonObject,List>,new TableDeleteCallback(){}) 上面的错误代码。正在尝试从android应用程序中创建或删除blob容器 public void deleteBlob(final String containerName, String blobName) { //Create the json Obje

类型中的方法delete(对象,TableDeleteCallback) MobileServiceTableBase不适用于 参数(JsonObject,List>,new TableDeleteCallback(){})

上面的错误代码。正在尝试从android应用程序中创建或删除blob容器

    public void deleteBlob(final String containerName, String blobName) {
    //Create the json Object we'll send over and fill it with the required
    //id property - otherwise we'll get kicked back
    JsonObject blob = new JsonObject();     
    blob.addProperty("id", 0);
    //Create parameters to pass in the blob details.  We do this with params
    //because it would be stripped out if we put it on the blob object
    List<Pair<String,String>> parameters = new ArrayList<Pair<String, String>>();
    parameters.add(new Pair<String, String>("containerName", containerName));
    parameters.add(new Pair<String, String>("blobName", blobName));     
    mTableBlobs.delete(blob, parameters, new TableDeleteCallback() {            
        @Override
        public void onCompleted(Exception exception, ServiceFilterResponse response) {
            if (exception != null) {
                Log.e(TAG, exception.getCause().getMessage());
                return;
            }
            //Refetch the blobs from the server
            getBlobsForContainer(containerName);
        }
    });
}
public void deleteBlob(最终字符串containerName,字符串blobName){
//创建我们将发送的json对象,并用所需的
//id属性-否则我们会被踢回去
JsonObject blob=新的JsonObject();
blob.addProperty(“id”,0);
//创建要传入blob详细信息的参数。我们使用参数来完成此操作
//因为如果我们把它放在blob物体上,它会被剥离
列表参数=新的ArrayList();
添加(新对(“containerName”,containerName));
添加(新对(“blobName”,blobName));
删除(blob,参数,新的TableDeleteCallback(){
@凌驾
未完成公共无效(异常、ServiceFilterResponse响应){
if(异常!=null){
Log.e(标记,exception.getCause().getMessage());
返回;
}
//从服务器上重新蚀刻Blob
getBlobsForContainer(containerName);
}
});
}

错误消息指出应该使用2个参数调用
delete()
方法,并且您要传递3个参数,这就是它无法编译的原因