次の方法で共有


AcceptedSentSharesClient.GetAcceptedSentShareAsync メソッド

定義

特定の送信された共有に acceptedSentShareName を持つ承認済み共有を取得します。

public virtual System.Threading.Tasks.Task<Azure.Response> GetAcceptedSentShareAsync (string sentShareName, string acceptedSentShareName, Azure.RequestContext context = default);
abstract member GetAcceptedSentShareAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetAcceptedSentShareAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetAcceptedSentShareAsync (sentShareName As String, acceptedSentShareName As String, Optional context As RequestContext = Nothing) As Task(Of Response)

パラメーター

sentShareName
String

送信された共有の名前。

acceptedSentShareName
String

承認済みの送信済み共有の名前。

context
RequestContext

要求コンテキスト。これは、クライアント パイプラインの既定の動作を呼び出しごとにオーバーライドできます。

戻り値

サービスから返された応答。 応答本文スキーマの詳細については、以下の「解説」セクションを参照してください。

例外

sentShareName または acceptedSentShareName が null です。

sentShareName または acceptedSentShareName が空の文字列であり、空でないと想定されていました。

サービスから成功以外の状態コードが返されました。

このサンプルでは、必要なパラメーターを使用して GetAcceptedSentShareAsync を呼び出し、結果を解析する方法を示します。

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

Response response = await client.GetAcceptedSentShareAsync("<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());

注釈

承認済みの送信済み共有を取得する

応答ペイロードの JSON スキーマを次に示します。

応答本文:

InPlaceAcceptedSentShareInPlaceAcceptedSentShareスキーマ:
{
              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.
            }

適用対象