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
cancellationToken CancellationToken optionalA 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
contextValuecancellationToken CancellationToken optionalA Threading.CancellationToken .Returns
ValueTask<string?> A String containing the selected EndpointProperty value.Exceptions
InvalidOperationExceptionThrows when the selected EndpointProperty enumeration is not known.