I
InsightNexus

Class PublisherCollection | Azure SDK for .NET

Author

James Stevens

Published Feb 16, 2026

Inheritance

Azure.ResourceManager.ArmCollection

PublisherCollection

Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.Hci.dll
Syntax
public class PublisherCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Hci.PublisherResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Hci.PublisherResource>

Constructors

PublisherCollection()

Declaration
protected PublisherCollection ();

Methods

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
  • Operation IdPublishers_Get
Declaration
public virtual Azure.Response<bool> Exists (string publisherName, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String publisherName

The name of the publisher available within HCI cluster.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Azure.Response<System.Boolean>
Exceptions
System.ArgumentException

publisherName is an empty string, and was expected to be non-empty.

System.ArgumentNullException

publisherName is null.

ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
  • Operation IdPublishers_Get
Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (string publisherName, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String publisherName

The name of the publisher available within HCI cluster.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
System.Threading.Tasks.Task<Azure.Response<System.Boolean>>
Exceptions
System.ArgumentException

publisherName is an empty string, and was expected to be non-empty.

System.ArgumentNullException

publisherName is null.

Get(String, CancellationToken)

Get Publisher resource details of HCI Cluster.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
  • Operation IdPublishers_Get
Declaration
public virtual Azure.Response<Azure.ResourceManager.Hci.PublisherResource> Get (string publisherName, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String publisherName

The name of the publisher available within HCI cluster.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Exceptions
System.ArgumentException

publisherName is an empty string, and was expected to be non-empty.

System.ArgumentNullException

publisherName is null.

GetAll(CancellationToken)

List Publishers available for the HCI Cluster.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
  • Operation IdPublishers_ListByCluster
Declaration
public virtual Azure.Pageable<Azure.ResourceManager.Hci.PublisherResource> GetAll (System.Threading.CancellationToken cancellationToken = null);
Parameters
System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns

GetAllAsync(CancellationToken)

List Publishers available for the HCI Cluster.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
  • Operation IdPublishers_ListByCluster
Declaration
public virtual Azure.AsyncPageable<Azure.ResourceManager.Hci.PublisherResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns

GetAsync(String, CancellationToken)

Get Publisher resource details of HCI Cluster.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
  • Operation IdPublishers_Get
Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.PublisherResource>> GetAsync (string publisherName, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String publisherName

The name of the publisher available within HCI cluster.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Exceptions
System.ArgumentException

publisherName is an empty string, and was expected to be non-empty.

System.ArgumentNullException

publisherName is null.

GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
  • Operation IdPublishers_Get
Declaration
public virtual Azure.NullableResponse<Azure.ResourceManager.Hci.PublisherResource> GetIfExists (string publisherName, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String publisherName

The name of the publisher available within HCI cluster.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Exceptions
System.ArgumentException

publisherName is an empty string, and was expected to be non-empty.

System.ArgumentNullException

publisherName is null.

GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
  • Operation IdPublishers_Get
Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Hci.PublisherResource>> GetIfExistsAsync (string publisherName, System.Threading.CancellationToken cancellationToken = null);
Parameters
System.String publisherName

The name of the publisher available within HCI cluster.

System.Threading.CancellationToken cancellationToken

The cancellation token to use.

Returns
Exceptions
System.ArgumentException

publisherName is an empty string, and was expected to be non-empty.

System.ArgumentNullException

publisherName is null.

Explicit Interface Implementations

IAsyncEnumerable<PublisherResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

Declaration
System.Collections.Generic.IAsyncEnumerator<Azure.ResourceManager.Hci.PublisherResource> IAsyncEnumerable<PublisherResource>.GetAsyncEnumerator (System.Threading.CancellationToken cancellationToken);
Parameters
System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken that may be used to cancel the asynchronous iteration.

Returns
System.Collections.Generic.IAsyncEnumerator<PublisherResource>

An enumerator that can be used to iterate asynchronously through the collection.

IEnumerable<PublisherResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
System.Collections.Generic.IEnumerator<Azure.ResourceManager.Hci.PublisherResource> IEnumerable<PublisherResource>.GetEnumerator ();
Returns
System.Collections.Generic.IEnumerator<PublisherResource>

An enumerator that can be used to iterate through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
Returns
System.Collections.IEnumerator

An System.Collections.IEnumerator object that can be used to iterate through the collection.