Export (0) Print
Expand All

DomainService.IsAuthorized Method

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.]

Requests authorization for the specified DomainOperationEntry.

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

public AuthorizationResult IsAuthorized(
	DomainOperationEntry domainOperationEntry,
	Object entity
)

Parameters

domainOperationEntry
Type: System.ServiceModel.DomainServices.Server.DomainOperationEntry
The DomainOperationEntry to authorize.
entity
Type: System.Object
Optional entity instance to authorize. null is acceptable for queries or when determining whether an operation can be performed outside the context of a submit. However, during a submit or an invoke, if an entity instance is available, this value will not be null.

Return Value

Type: System.ComponentModel.DataAnnotations.AuthorizationResult
The results of authorization. Allowed indicates the authorization request is allowed. Any other value indicates it was denied.
Show:
© 2014 Microsoft