Partager via


RequestRestrictions.MechanismsToAdvertise Property

When a request fails to authenticate, the configured authentication modules may or may not provide some kind of advertisement back to the client that they support authentication through their particular mechanism. Some advertisements are more intrusive than others; for example the Federated mechanism hijacks the 401 entirely to send a 302 to the client. If a particular mechanism's bit is unset in this mask, then it will not advertise itself on a failed request.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Property MechanismsToAdvertise As AuthenticationMechanisms
public AuthenticationMechanisms MechanismsToAdvertise { get; private set; }
public:
property AuthenticationMechanisms MechanismsToAdvertise {
    AuthenticationMechanisms get ();
    private: void set (AuthenticationMechanisms value);
}
member MechanismsToAdvertise : AuthenticationMechanisms with get, private set
function get MechanismsToAdvertise () : AuthenticationMechanisms 
private function set MechanismsToAdvertise (value : AuthenticationMechanisms)

Property Value

Type: Microsoft.TeamFoundation.Framework.Server.AuthenticationMechanisms

.NET Framework Security

See Also

Reference

RequestRestrictions Class

Microsoft.TeamFoundation.Framework.Server Namespace