Partilhar via


CollectionResult<T> Constructor

Definition

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 System.ClientModel.ClientResult.SetRawResponse(System.ClientModel.Primitives.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