MockableFileSharesResourceGroupResource.GetFileShare Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.