WindowsServiceElement.AllowAnonymousLogons Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets a Boolean value that specifies whether anonymous users can logon.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

[ConfigurationPropertyAttribute("allowAnonymousLogons", DefaultValue = false)]
public bool AllowAnonymousLogons { get; set; }

Property Value

Type: System.Boolean

true if anonymous users can logon; otherwise, false. The default is false.

When using Windows service credentials on a binding, the system does not allow anonymous access by default. This means that only domain or workgroup authenticated users have access to the system. You can use this property to allow anonymous, unauthenticated users to access the service. You should exercise caution when using this setting.

.NET Framework
Available since 3.0
Return to top