Table of Contents

Struct ShareAudience

Namespace
Azure.Storage.Files.Shares.Models
Assembly
Azure.Storage.Files.Shares.dll

Audiences available for Blobs

public readonly struct ShareAudience : IEquatable<ShareAudience>
Implements
Inherited Members

Constructors

ShareAudience(string)

Intializes new instance of ShareAudience.

public ShareAudience(string value)

Parameters

value string

The Azure Active Directory audience to use when forming authorization scopes. For the Language service, this value corresponds to a URL that identifies the Azure cloud where the resource is located. For more information: https://learn.microsoft.com/en-us/azure/storage/blobs/authorize-access-azure-active-directory.

Remarks

Please use one of the static constant members over creating a custom value unless you have specific scenario for doing so.

Properties

DefaultAudience

Default Audience. Use to acquire a token for authorizing requests to any Azure Storage account

Resource ID: "https://storage.azure.com/ ".

If no audience is specified, this is the default value.

public static ShareAudience DefaultAudience { get; }

Property Value

ShareAudience

Methods

CreateShareServiceAccountAudience(string)

The service endpoint for a given storage account. Use this method to acquire a token for authorizing requests to that specific Azure Storage account and service only.

public static ShareAudience CreateShareServiceAccountAudience(string storageAccountName)

Parameters

storageAccountName string

The storage account name used to populate the service endpoint.

Returns

ShareAudience

Equals(ShareAudience)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ShareAudience other)

Parameters

other ShareAudience

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(ShareAudience, ShareAudience)

Determines if two ShareAudience values are the same.

public static bool operator ==(ShareAudience left, ShareAudience right)

Parameters

left ShareAudience
right ShareAudience

Returns

bool

implicit operator ShareAudience(string)

Converts a string to a ShareAudience.

public static implicit operator ShareAudience(string value)

Parameters

value string

Returns

ShareAudience

operator !=(ShareAudience, ShareAudience)

Determines if two ShareAudience values are not the same.

public static bool operator !=(ShareAudience left, ShareAudience right)

Parameters

left ShareAudience
right ShareAudience

Returns

bool