Partager via


SentSharesClient.GetSentShare(String, RequestContext) Méthode

Définition

Obtenir un partage envoyé dans le compte Purview donné.

public virtual Azure.Response GetSentShare (string sentShareName, Azure.RequestContext context = default);
abstract member GetSentShare : string * Azure.RequestContext -> Azure.Response
override this.GetSentShare : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetSentShare (sentShareName As String, Optional context As RequestContext = Nothing) As Response

Paramètres

sentShareName
String

Nom du partage envoyé.

context
RequestContext

Contexte de requête, qui peut remplacer les comportements par défaut du pipeline client par appel.

Retours

Réponse retournée par le service. Les détails du schéma du corps de la réponse se trouvent dans la section Remarques ci-dessous.

Exceptions

sentShareName a la valeur null.

sentShareName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

Le service a retourné un code de status non réussi.

Exemples

Cet exemple montre comment appeler GetSentShare avec les paramètres requis et analyser le résultat.

var credential = new DefaultAzureCredential();
var client = new SentSharesClient("<https://my-service.azure.com>", credential);

Response response = client.GetSentShare("<sentShareName>");

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("id").ToString());
Console.WriteLine(result.GetProperty("name").ToString());
Console.WriteLine(result.GetProperty("type").ToString());
Console.WriteLine(result.GetProperty("shareKind").ToString());

Remarques

Obtenir un partage envoyé

Vous trouverez ci-dessous le schéma JSON pour la charge utile de réponse.

Corps de réponse :

InPlaceSentShare Schéma pour InPlaceSentShare:
{
              shareKind: InPlace, # Required. Defines the supported types for share.
              id: string, # Optional. The resource id of the resource.
              name: string, # Optional. Name of the resource.
              type: string, # Optional. Type of the resource.
              properties: {
                collection: {
                  referenceName: string, # Required. Gets or sets the reference name.
                  type: string, # Required. Gets or sets the reference type property.
                }, # Required. Reference to a Collection.
                createdAt: string (ISO 8601 Format), # Optional. Time at which the share was created.
                description: string, # Optional. Share description.
                provisioningState: "Unknown" | "Succeeded" | "Creating" | "Deleting" | "Moving" | "Failed" | "SoftDeleting" | "SoftDeleted" | "SourceMoved" | "SourceDeleted" | "TargetMoved" | "TargetDeleted", # Optional. Provisioning status of the resource
                senderEmail: string, # Optional. Email of the sender who created the sent share.
                senderName: string, # Optional. Name of the sender who created the sent share.
                senderTenantName: string, # Optional. Tenant name of the sender who created the sent share.
              }, # Required. Properties of in place sent share.
            }

S’applique à