AcceptedSentSharesClient.GetAcceptedSentShare Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtenez un partage accepté avec acceptedSentShareName pour un partage envoyé particulier.
public virtual Azure.Response GetAcceptedSentShare (string sentShareName, string acceptedSentShareName, Azure.RequestContext context = default);
abstract member GetAcceptedSentShare : string * string * Azure.RequestContext -> Azure.Response
override this.GetAcceptedSentShare : string * string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetAcceptedSentShare (sentShareName As String, acceptedSentShareName As String, Optional context As RequestContext = Nothing) As Response
Paramètres
- sentShareName
- String
Nom du partage envoyé.
- acceptedSentShareName
- String
Nom du partage envoyé accepté.
- context
- RequestContext
Contexte de la demande, 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
ou acceptedSentShareName
est null.
sentShareName
ou acceptedSentShareName
est une chaîne vide, et était censé être non vide.
Le service a retourné un code de status non réussi.
Exemples
Cet exemple montre comment appeler GetAcceptedSentShare avec les paramètres requis et analyser le résultat.
var credential = new DefaultAzureCredential();
var client = new AcceptedSentSharesClient("<https://my-service.azure.com>", credential);
Response response = client.GetAcceptedSentShare("<sentShareName>", "<acceptedSentShareName>");
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é accepté
Vous trouverez ci-dessous le schéma JSON pour la charge utile de réponse.
Corps de réponse :
InPlaceAcceptedSentShare
Schéma pourInPlaceAcceptedSentShare
:{
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: {
createdAt: string (ISO 8601 Format), # Optional. created at
expirationDate: string (ISO 8601 Format), # Optional. Expiration date of the received share in UTC format
receivedShareStatus: "Active" | "Reinstating" | "Revoked" | "Revoking" | "RevokeFailed" | "ReinstateFailed" | "SourceDeleted", # Optional. received share status
receiverEmail: string, # Optional. Email of the user/receiver who received the sent share invitation and created the received share
receiverName: string, # Optional. Name of the user/receiver who received the sent share invitation and created the received share
receiverTargetObjectId: string, # Optional. Receiver's target object id
receiverTenantName: string, # Optional. Tenant name of the user/receiver who received the sent share invitation and created the received share
senderEmail: string, # Optional. Email of the sender who created the sent share invitation
senderName: string, # Optional. Name of the sender who created the sent share invitation
senderTenantName: string, # Optional. Tenant name of the sender who created the sent share invitation
sharedAt: string (ISO 8601 Format), # Optional. Shared at
}, # Required. Properties of in place accepted sent share.
}
S’applique à
Azure SDK for .NET