Share via


CollectionResult<T> Constructors

Definition

Overloads

CollectionResult<T>()

Creates a new instance of CollectionResult<T>.

CollectionResult<T>(PipelineResponse)

Create a new instance of CollectionResult<T>.

CollectionResult<T>()

Source:
CollectionResultOfT.cs
Source:
CollectionResultOfT.cs

Creates a new instance of CollectionResult<T>.

protected internal CollectionResult ();
Protected Friend Sub New ()

Remarks

If no PipelineResponse is provided when the ClientResult instance is created, it is expected that a derived type will call SetRawResponse(PipelineResponse) prior to a user calling GetRawResponse(). This constructor is indended for use by collection implementations that postpone sending a request until GetEnumerator() is called. Such implementations will typically be returned from client convenience methods so that callers of the methods don't need to dispose the return value.

Applies to

CollectionResult<T>(PipelineResponse)

Source:
CollectionResultOfT.cs

Create a new instance of CollectionResult<T>.

protected internal CollectionResult (System.ClientModel.Primitives.PipelineResponse response);
new System.ClientModel.CollectionResult<'T> : System.ClientModel.Primitives.PipelineResponse -> System.ClientModel.CollectionResult<'T>
Protected Friend Sub New (response As PipelineResponse)

Parameters

response
PipelineResponse

The PipelineResponse holding the items in the collection, or the first set of the items in the collection.

Applies to