Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Documentation update for API 2.0.0.0 #119

Closed
wants to merge 1 commit into from

3 participants

Milas Bowman Garrett Owen Jeff Irwin (Microsoft)
Milas Bowman

The namespace is now Microsoft.WindowsAzure.Storage, and the static method CloudStorageAccount.FromConfigurationSetting no longer exists in the latest API, so Parse (or ideally TryParse) should be used instead

Source: http://msdn.microsoft.com/en-us/library/windowsazure/microsoft.windowsazure.storage.cloudstorageaccount_members.aspx

This is a redux of my previous pull request so that it could come from my branch for it, rather than master

Milas Bowman milas closed this
Milas Bowman milas reopened this
Milas Bowman

Wow, sorry -- while moving these changes from my master branch to a feature branch and momentarily deleted this one. I'll stop wreaking havoc on your pull requests now :smile_cat:

Garrett Owen

Thanks for you feedback! We will be updating the documentation appropriately for the new version.

Garrett Owen garrettowen closed this
Jeff Irwin (Microsoft) jeffreyjirwin was unassigned by milas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 31, 2012
  1. Milas Bowman
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 4 deletions.
  1. +5 −4 README.md
9 README.md
View
@@ -66,16 +66,17 @@ http://nuget.org/packages/System.Spatial/5.0.2<br/>
Developer Center</a>.</li>
</ul>
-<p>First, include the classes you need (in this case we'll include the StorageClient
+<p>First, include the classes you need (in this case we'll include the lightweight TableClient
and further demonstrate creating a table):<br/>
-<pre>using Microsoft.WindowsAzure;
-using Microsoft.WindowsAzure.StorageClient;</pre></p>
+<pre>using System.Configuration;
+using Microsoft.WindowsAzure.Storage;
+using Microsoft.WindowsAzure.Storage.Table;</pre></p>
<p>To perform an operation on any Windows Azure resource you will first instantiate
a <strong>client</strong> which allows performing actions on it. The resource is known as an
<strong>entity</strong>. To do so for Table you also have to authenticate your request:<br/>
<pre>var storageAccount =
- CloudStorageAccount.FromConfigurationSetting("StorageConnectionString");
+ CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString);
var tableClient = storageAccount.CreateCloudTableClient();</pre></p>
<p>Now, to create a table entity using the client:<br/>
Something went wrong with that request. Please try again.