Share via


AuthorizationContext.OperationType 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 a string value that describes the type of operation being authorized.

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

Syntax

'Declaration
Public ReadOnly Property OperationType As String
    Get
'Usage
Dim instance As AuthorizationContext
Dim value As String

value = instance.OperationType
public string OperationType { get; }
public:
property String^ OperationType {
    String^ get ();
}
member OperationType : string
function get OperationType () : String

Property Value

Type: System.String
The type of operation being authorized.

Exceptions

Exception Condition
InvalidOperationException

The current instance is a template.

Remarks

The OperationType property never contains a nulla null reference (Nothing in Visual Basic) or empty value. It reflects the category of the operation being authorized. Example values are "Query" and "Invoke".

See Also

Reference

AuthorizationContext Class

System.ComponentModel.DataAnnotations Namespace