Struct ShareAudience
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
stringThe 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
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
stringThe storage account name used to populate the service endpoint.
Returns
Equals(ShareAudience)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ShareAudience other)
Parameters
other
ShareAudienceAn object to compare with this object.
Returns
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
ShareAudienceright
ShareAudience
Returns
implicit operator ShareAudience(string)
Converts a string to a ShareAudience.
public static implicit operator ShareAudience(string value)
Parameters
value
string
Returns
operator !=(ShareAudience, ShareAudience)
Determines if two ShareAudience values are not the same.
public static bool operator !=(ShareAudience left, ShareAudience right)
Parameters
left
ShareAudienceright
ShareAudience