SentShareInvitationsClient.GetSentShareInvitation Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Rufen Sie die Einladung für eine bestimmte Freigabe ab.
public virtual Azure.Response GetSentShareInvitation(string sentShareName, string sentShareInvitationName, Azure.RequestContext context = default);
abstract member GetSentShareInvitation : string * string * Azure.RequestContext -> Azure.Response
override this.GetSentShareInvitation : string * string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetSentShareInvitation (sentShareName As String, sentShareInvitationName As String, Optional context As RequestContext = Nothing) As Response
Parameter
- sentShareName
- String
Der Name der gesendeten Freigabe.
- sentShareInvitationName
- String
Name der gesendeten Einladung.
- context
- RequestContext
Der Anforderungskontext, der das Standardverhalten der Clientpipeline pro Aufruf außer Kraft setzen kann.
Gibt zurück
Die vom Dienst zurückgegebene Antwort. Details zum Antworttextschema finden Sie unten im Abschnitt Hinweise.
Ausnahmen
sentShareName
oder sentShareInvitationName
ist NULL.
sentShareName
oder sentShareInvitationName
ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.
Der Dienst hat einen nicht erfolgreichen status Code zurückgegeben.
Beispiele
In diesem Beispiel wird gezeigt, wie GetSentShareInvitation mit den erforderlichen Parametern aufgerufen und das Ergebnis analysiert wird.
var credential = new DefaultAzureCredential();
var client = new SentShareInvitationsClient("<https://my-service.azure.com>", credential);
Response response = client.GetSentShareInvitation("<sentShareName>", "<sentShareInvitationName>");
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("invitationKind").ToString());
Hinweise
Abrufen einer gesendeten Freigabe-Einladung
Im Folgenden finden Sie das JSON-Schema für die Antwortnutzlast.
Antworttext:
Diese Methode akzeptiert eines der folgenden JSON-Objekte als Nutzlast. Wählen Sie ein JSON-Objekt aus, um das Schema dafür anzuzeigen.
ApplicationInvitation
Schema fürApplicationInvitation
:{
invitationKind: Application, # Required. The types of invitations.
id: string, # Optional. The resource id of the resource.
name: string, # Optional. Name of the resource.
type: string, # Optional. Type of the resource.
properties: {
expirationDate: string (ISO 8601 Format), # Optional. The expiration date for the invitation
invitationId: string, # Optional. Id of the invitation
invitationStatus: "Pending" | "Accepted" | "Rejected", # Optional. Status of the invitation.
provisioningState: "Unknown" | "Succeeded" | "Creating" | "Deleting" | "Moving" | "Failed" | "SoftDeleting" | "SoftDeleted" | "SourceMoved" | "SourceDeleted" | "TargetMoved" | "TargetDeleted", # Optional. Provisioning status of the resource
respondedAt: string (ISO 8601 Format), # Optional. The time the recipient responded to the invitation.
senderEmail: string, # Optional. Email address of the sender.
senderName: string, # Optional. Name of the sender
senderTenantName: string, # Optional. Tenant name of the sender
sentAt: string (ISO 8601 Format), # Optional. Gets the time at which the invitation was sent.
shareKind: "InPlace", # Optional. Defines the supported types for share.
targetActiveDirectoryId: string, # Required. The target azure active directory id the invitation is sent to.
targetObjectId: string, # Required. The target object id in the azure active directory the invitation is sent to.
}, # Required. Properties of the application invitation type.
}
~+ 1 weitere JSON-Objekte
UserInvitation
Schema fürUserInvitation
:{
invitationKind: User, # Required. The types of invitations.
id: string, # Optional. The resource id of the resource.
name: string, # Optional. Name of the resource.
type: string, # Optional. Type of the resource.
properties: {
expirationDate: string (ISO 8601 Format), # Optional. The expiration date for the invitation
invitationId: string, # Optional. Id of the invitation
invitationStatus: "Pending" | "Accepted" | "Rejected", # Optional. Status of the invitation.
provisioningState: "Unknown" | "Succeeded" | "Creating" | "Deleting" | "Moving" | "Failed" | "SoftDeleting" | "SoftDeleted" | "SourceMoved" | "SourceDeleted" | "TargetMoved" | "TargetDeleted", # Optional. Provisioning status of the resource
respondedAt: string (ISO 8601 Format), # Optional. The time the recipient responded to the invitation.
senderEmail: string, # Optional. Email address of the sender.
senderName: string, # Optional. Name of the sender
senderTenantName: string, # Optional. Tenant name of the sender
sentAt: string (ISO 8601 Format), # Optional. Gets the time at which the invitation was sent.
shareKind: "InPlace", # Optional. Defines the supported types for share.
targetEmail: string, # Required. The receiver email for the invitation is being sent.
}, # Required. Properties of the user invitation type.
}
Gilt für:
Azure SDK for .NET