Export (0) Print
Expand All

AuthorizationAttribute.ResourceType Property

WCF RIA Services

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Gets or sets the Type to use as the resource manager for ErrorMessage.

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

public Type ResourceType { get; set; }

Property Value

Type: System.Type
The Type to use as the resource manager, or null if ErrorMessage contains a literal value.

This property is optional. If null, ErrorMessage is treated as a literal string. If it is not null, ErrorMessage is treated as the name of a static property within the specified Type that can be retrieved to yield the actual error message.

© 2015 Microsoft