Bagikan melalui


PersonDirectoryExtensions.CreatePersonAsync Method

Definition

Overloads

CreatePersonAsync(IPersonDirectory, EnrolledPerson, CancellationToken)
Obsolete.
CreatePersonAsync(IPersonDirectory, String, String, CancellationToken)

CreatePersonAsync(IPersonDirectory, EnrolledPerson, CancellationToken)

Source:
PersonDirectoryExtensions.cs

Caution

Method is being deprecated, consider using other overloads.

[System.Obsolete("Method is being deprecated, consider using other overloads.", false)]
public static System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonCreationResponse,Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonDirectoryCreatePersonHeaders>> CreatePersonAsync (this Microsoft.Azure.CognitiveServices.Vision.Face.IPersonDirectory operations, Microsoft.Azure.CognitiveServices.Vision.Face.Models.EnrolledPerson body, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Method is being deprecated, consider using other overloads.", false)>]
static member CreatePersonAsync : Microsoft.Azure.CognitiveServices.Vision.Face.IPersonDirectory * Microsoft.Azure.CognitiveServices.Vision.Face.Models.EnrolledPerson * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonCreationResponse, Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonDirectoryCreatePersonHeaders>>
<Extension()>
Public Function CreatePersonAsync (operations As IPersonDirectory, body As EnrolledPerson, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of PersonCreationResponse, PersonDirectoryCreatePersonHeaders))

Parameters

operations
IPersonDirectory
cancellationToken
CancellationToken

Returns

Attributes

Applies to

CreatePersonAsync(IPersonDirectory, String, String, CancellationToken)

Source:
PersonDirectoryExtensions.cs
public static System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonCreationResponse,Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonDirectoryCreatePersonHeaders>> CreatePersonAsync (this Microsoft.Azure.CognitiveServices.Vision.Face.IPersonDirectory operations, string name = default, string userData = default, System.Threading.CancellationToken cancellationToken = default);
static member CreatePersonAsync : Microsoft.Azure.CognitiveServices.Vision.Face.IPersonDirectory * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonCreationResponse, Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonDirectoryCreatePersonHeaders>>
<Extension()>
Public Function CreatePersonAsync (operations As IPersonDirectory, Optional name As String = Nothing, Optional userData As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of PersonCreationResponse, PersonDirectoryCreatePersonHeaders))

Parameters

operations
IPersonDirectory
name
String
userData
String
cancellationToken
CancellationToken

Returns

Applies to