/// <summary> /// Constructs a web request to set user-defined metadata for the directory. /// </summary> /// <param name="uri">A <see cref="System.Uri"/> specifying the absolute URI to the destination blob.</param> /// <param name="timeout">An integer specifying the server timeout interval.</param> /// <param name="accessCondition">An <see cref="AccessCondition"/> object that represents the condition that must be met in order for the request to proceed.</param> /// <param name="useVersionHeader">A boolean value indicating whether to set the <i>x-ms-version</i> HTTP header.</param> /// <param name="operationContext">An <see cref="OperationContext" /> object for tracking the current operation.</param> /// <returns>A web request for performing the operation.</returns> public static HttpWebRequest SetMetadata(Uri uri, int?timeout, AccessCondition accessCondition, bool useVersionHeader, OperationContext operationContext) { UriQueryBuilder directoryBuilder = GetDirectoryUriQueryBuilder(); HttpWebRequest request = HttpWebRequestFactory.SetMetadata(uri, timeout, directoryBuilder, useVersionHeader, operationContext); request.ApplyAccessCondition(accessCondition); return(request); }
/// <summary> /// Generates a web request to set user-defined metadata for the container. /// </summary> /// <param name="uri">The absolute URI to the container.</param> /// <param name="timeout">The server timeout interval.</param> /// <param name="accessCondition">The access condition to apply to the request.</param> /// <param name="operationContext">An <see cref="OperationContext"/> object for tracking the current operation.</param> /// <returns>A web request to use to perform the operation.</returns> public static HttpWebRequest SetMetadata(Uri uri, int?timeout, AccessCondition accessCondition, OperationContext operationContext) { UriQueryBuilder containerBuilder = GetContainerUriQueryBuilder(); HttpWebRequest request = HttpWebRequestFactory.SetMetadata(uri, timeout, containerBuilder, operationContext); request.ApplyAccessCondition(accessCondition); return(request); }
/// <summary> /// Generates a web request to set user-defined metadata for the queue. /// </summary> /// <param name="uri">A <see cref="System.Uri"/> specifying the absolute URI to the queue.</param> /// <param name="timeout">An integer specifying the server timeout interval.</param> /// <param name="useVersionHeader">A boolean value indicating whether to set the <i>x-ms-version</i> HTTP header.</param> /// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param> /// <returns>A <see cref="System.Net.HttpWebRequest"/> object.</returns> public static HttpWebRequest SetMetadata(Uri uri, int?timeout, bool useVersionHeader, OperationContext operationContext) { HttpWebRequest request = HttpWebRequestFactory.SetMetadata(uri, timeout, null, useVersionHeader, operationContext); return(request); }