ReceivedInvitationsClient.GetReceivedInvitation メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
名前で識別される受信した招待を取得します。
public virtual Azure.Response GetReceivedInvitation(string receivedInvitationName, Azure.RequestContext context = default);
abstract member GetReceivedInvitation : string * Azure.RequestContext -> Azure.Response
override this.GetReceivedInvitation : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetReceivedInvitation (receivedInvitationName As String, Optional context As RequestContext = Nothing) As Response
パラメーター
- receivedInvitationName
- String
受信した招待の名前。
- context
- RequestContext
要求コンテキスト。これは、クライアント パイプラインの既定の動作を呼び出しごとにオーバーライドできます。
戻り値
サービスから返された応答。 応答本文スキーマの詳細については、以下の「解説」セクションを参照してください。
例外
receivedInvitationName
が null です。
receivedInvitationName
は空の文字列であり、空でないと予想されていました。
サービスから成功以外の状態コードが返されました。
例
このサンプルでは、必要なパラメーターを使用して GetReceivedInvitation を呼び出し、結果を解析する方法を示します。
var credential = new DefaultAzureCredential();
var client = new ReceivedInvitationsClient("<https://my-service.azure.com>", credential);
Response response = client.GetReceivedInvitation("<receivedInvitationName>");
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());
注釈
受信した招待を取得する
応答ペイロードの JSON スキーマを次に示します。
応答本文:
このメソッドは、以下のいずれかの JSON オブジェクトをペイロードとして受け取ります。 このスキーマを表示するには、JSON オブジェクトを選択してください。
ApplicationReceivedInvitation
のApplicationReceivedInvitation
スキーマ:{
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: {
description: string, # Optional. Description shared when the invitation was created
expirationDate: string (ISO 8601 Format), # Optional. The expiration date for the received share created by accepting the invitation.
invitationStatus: "Pending" | "Accepted" | "Rejected", # Optional. Status of the invitation.
location: string, # Optional. Location of the invitation.
receiverEmail: string, # Optional. Email of the user/receiver who received the sent share invitation
receiverName: string, # Optional. Name of the user/receiver who received the sent share invitation
receiverTenantName: string, # Optional. Tenant name of the user/receiver who received the sent share invitation
respondedAt: string (ISO 8601 Format), # Optional. The time the recipient responded to the invitation.
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
sentAt: string (ISO 8601 Format), # Optional. Gets the time at which the invitation was sent.
sentShareName: string, # Optional. Gets the source share Name.
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 for a received invitation of kind application.
}
~+ 1 つ以上の JSON オブジェクト
UserReceivedInvitation
のUserReceivedInvitation
スキーマ:{
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: {
description: string, # Optional. Description shared when the invitation was created
expirationDate: string (ISO 8601 Format), # Optional. The expiration date for the received share created by accepting the invitation.
invitationStatus: "Pending" | "Accepted" | "Rejected", # Optional. Status of the invitation.
location: string, # Optional. Location of the invitation.
receiverEmail: string, # Optional. Email of the user/receiver who received the sent share invitation
receiverName: string, # Optional. Name of the user/receiver who received the sent share invitation
receiverTenantName: string, # Optional. Tenant name of the user/receiver who received the sent share invitation
respondedAt: string (ISO 8601 Format), # Optional. The time the recipient responded to the invitation.
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
sentAt: string (ISO 8601 Format), # Optional. Gets the time at which the invitation was sent.
sentShareName: string, # Optional. Gets the source share Name.
shareKind: "InPlace", # Optional. Defines the supported types for share.
targetEmail: string, # Required. The receiver email for the invitation is being sent.
}, # Required. Properties for a received invitation of kind user.
}
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET