ServicePropertyAttribute.SearchMode Property
Gets or sets whether a search for a service must be carried out within the current service container, or within the current and parent service containers.
Namespace: DevExpress.Mvvm.DataAnnotations
Assembly: DevExpress.Mvvm.v24.2.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
#Declaration
public ServiceSearchMode SearchMode { get; set; }
#Property Value
Type | Description |
---|---|
Service |
A Service |
Available values:
Name | Description |
---|---|
Prefer |
A search for a service is carried out within both the current and parent service containers. A service found in the current container has a higher priority. |
Local |
A search for a service is carried out within the current service container. |
Prefer |
A search for a service is carried out within both the current and parent service containers. A service found in parent containers has a higher priority. |
#Remarks
By default, the SearchMode property is set to ServiceSearchMode.PreferLocal.