ListingContext Constructor

Storage Client Library NET API

[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See Storage Client Library for the latest version.]

Initializes a new instance of the ListingContext class.

Namespace: Microsoft.WindowsAzure.StorageClient.Protocol
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)

Usage

Visual Basic
Dim prefix As String
Dim maxResults As Nullable(Of Integer)

Dim instance As New ListingContext(prefix, maxResults)

Syntax

Visual Basic
Public Sub New ( _
	prefix As String, _
	maxResults As Nullable(Of Integer) _
)
C#
public ListingContext (
	string prefix,
	Nullable<int> maxResults
)
C++
public:
ListingContext (
	String^ prefix, 
	Nullable<int> maxResults
)
J#
JScript

Parameters

prefix

Type: System.String

The resource name prefix.

maxResults

Type: System.Nullable

The maximum number of resources to return in a single operation, up to the per-operation limit of 5000.

Remarks

If maxresults is not specified, the server will return up to 5,000 items. Setting maxresults to a value greater than 5,000 results in error response code 400 (Bad Request).

For more details about this API, see the topics on the equivalent REST APIs in See Also > Other Resources.


Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

See Also