AttestationModelFactory.AttestationResponse<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create an instance of an AttestationResponse object for mocking purposes.
public static Azure.Security.Attestation.AttestationResponse<T> AttestationResponse<T> (Azure.Response response, Azure.Security.Attestation.AttestationToken token, T body = default) where T : class;
static member AttestationResponse : Azure.Response * Azure.Security.Attestation.AttestationToken * 'T -> Azure.Security.Attestation.AttestationResponse<'T (requires 'T : null)> (requires 'T : null)
Public Shared Function AttestationResponse(Of T As Class) (response As Response, token As AttestationToken, Optional body As T = Nothing) As AttestationResponse(Of T)
Type Parameters
- T
Type of the token body.
Parameters
- response
- Response
Response type associated with the underlying response.
- token
- AttestationToken
Attestation Token to be included in the response.
- body
- T
Optional body instance. If no body is provided, the body of the token is used.
Returns
An Azure.Security.Attestation.AttestationResponse object.
Remarks
The body
parameter is provided to create an attestation response whose Value property is something other than the body of the token.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for