EndpointReferenceExpression Methods
ClassMethods2 members
Represents a property expression for an endpoint reference.
Gets the value of the property of the endpoint.
public class EndpointReferenceExpression{ public ValueTask<string?> GetValueAsync( CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
cancellationTokenCancellationTokenoptionalA Threading.CancellationToken.Returns
ValueTask<string?>A String containing the selected EndpointProperty value.Exceptions
InvalidOperationExceptionThrows when the selected EndpointProperty enumeration is not known.GetValueAsync(ValueProviderContext, CancellationToken)Section titled GetValueAsync(ValueProviderContext, CancellationToken)ValueTask<string?> Gets the value of the property of the endpoint.
public class EndpointReferenceExpression{ public ValueTask<string?> GetValueAsync( ValueProviderContext context, CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
contextValueProviderContextThe context to use when resolving the endpoint property.cancellationTokenCancellationTokenoptionalA Threading.CancellationToken.Returns
ValueTask<string?>A String containing the selected EndpointProperty value.Exceptions
InvalidOperationExceptionThrows when the selected EndpointProperty enumeration is not known.