Share via


MockableFileSharesResourceGroupResource.GetFileShare Method

Definition

Get a FileShare

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}.
  • Operation Id. : FileShares_Get.
  • Default Api Version. : 2025-09-01-preview.
public virtual Azure.Response<Azure.ResourceManager.FileShares.FileShareResource> GetFileShare(string resourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileShare : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.FileShares.FileShareResource>
override this.GetFileShare : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.FileShares.FileShareResource>
Public Overridable Function GetFileShare (resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of FileShareResource)

Parameters

resourceName
String

The resource name of the file share, as seen by the administrator through Azure Resource Manager.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceName is null.

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

Applies to