WindowsServiceElement::AllowAnonymousLogons Property

 

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

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

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

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
Show: