Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ValidatingPropertiesEventArgs::Properties Property

 

Gets the collection of names and values of the profile properties to validate.

Namespace:   System.Web.ApplicationServices
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
property IDictionary<String^, Object^>^ Properties {
	IDictionary<String^, Object^>^ get();
}

Property Value

Type: System.Collections.Generic::IDictionary<String^, Object^>^

The names and values of the profile properties to validate.

The Properties property returns an IDictionary object that contains the names and values of the profile properties to set for the user. If you create an event handler for the ValidatingProperties event, you can retrieve the properties to validate from the Properties property. If any values fail validation, add them to the FailedProperties property. The SetPropertiesForCurrentUser method returns the collection in the FailedProperties property so that you can determine which properties failed validation.

The following example shows an event handler for the ValidatingProperties event. When the value passed for FirstName property is empty or null, the FirstName property is added to the FailedProperties collection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft