AuthorizationAttribute.ResourceType Property
[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)
Syntax
'Declaration
Public Property ResourceType As Type
Get
Set
'Usage
Dim instance As AuthorizationAttribute
Dim value As Type
value = instance.ResourceType
instance.ResourceType = value
public Type ResourceType { get; set; }
public:
property Type^ ResourceType {
Type^ get ();
void set (Type^ value);
}
member ResourceType : Type with get, set
function get ResourceType () : Type
function set ResourceType (value : Type)
Property Value
Type: System.Type
The Type to use as the resource manager, or nulla null reference (Nothing in Visual Basic) if ErrorMessage contains a literal value.
Remarks
This property is optional. If nulla null reference (Nothing in Visual Basic), ErrorMessage is treated as a literal string. If it is not nulla null reference (Nothing in Visual Basic), ErrorMessage is treated as the name of a static property within the specified Type that can be retrieved to yield the actual error message.