Class ShareHttpResponseParsers
- Namespace
- Microsoft.WindowsAzure.Storage.File.Protocol
- Assembly
- Microsoft.WindowsAzure.Storage.dll
Provides methods for parsing responses to operations on shares in the File service.
public static class ShareHttpResponseParsers
- Inheritance
-
ShareHttpResponseParsers
- Inherited Members
Methods
GetMetadata(HttpWebResponse)
Gets the user-defined metadata.
public static IDictionary<string, string> GetMetadata(HttpWebResponse response)
Parameters
response
HttpWebResponseThe response from server.
Returns
- IDictionary<string, string>
A IDictionary of the metadata.
GetProperties(HttpWebResponse)
Gets the share's properties from the response.
public static FileShareProperties GetProperties(HttpWebResponse response)
Parameters
response
HttpWebResponseThe web response.
Returns
- FileShareProperties
The share's attributes.
GetRequestId(HttpWebResponse)
Gets the request ID from the response.
public static string GetRequestId(HttpWebResponse response)
Parameters
response
HttpWebResponseThe web response.
Returns
- string
A unique value associated with the request.
GetSnapshotTime(HttpWebResponse)
Gets the snapshot timestamp from the response.
public static string GetSnapshotTime(HttpWebResponse response)
Parameters
response
HttpWebResponseThe web response.
Returns
- string
The snapshot timestamp.
ReadShareStats(Stream)
Reads share stats from a stream.
public static ShareStats ReadShareStats(Stream inputStream)
Parameters
inputStream
StreamThe stream from which to read the share stats.
Returns
- ShareStats
The share stats stored in the stream.
ReadSharedAccessIdentifiers(Stream, FileSharePermissions)
Reads the share access policies from a stream in XML.
public static void ReadSharedAccessIdentifiers(Stream inputStream, FileSharePermissions permissions)
Parameters
inputStream
StreamThe stream of XML policies.
permissions
FileSharePermissionsThe permissions object to which the policies are to be written.