AuthorizationContext.Operation 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 the name of the operation being authorized.
Namespace: System.ComponentModel.DataAnnotations
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public ReadOnly Property Operation As String
Get
'Usage
Dim instance As AuthorizationContext
Dim value As String
value = instance.Operation
public string Operation { get; }
public:
property String^ Operation {
String^ get ();
}
member Operation : string
function get Operation () : String
Property Value
Type: System.String
The name of the operation being authorized.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The current instance is a template. |
Remarks
The Operation property never contains a nulla null reference (Nothing in Visual Basic) or empty value. It contains the name the operation as it appears in the code, such as "GetEmployees".