Share via


AuthenticationServiceAttribute Class

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

Designates a domain service as an authentication service.

Inheritance Hierarchy

System.Object
  System.Attribute
    System.ServiceModel.DomainServices.DomainIdentifierAttribute
      System.ServiceModel.DomainServices.Server.ApplicationServices.AuthenticationServiceAttribute

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Interface, AllowMultiple := False,  _
    Inherited := True)> _
Public NotInheritable Class AuthenticationServiceAttribute _
    Inherits DomainIdentifierAttribute
'Usage
Dim instance As AuthenticationServiceAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = false, 
    Inherited = true)]
public sealed class AuthenticationServiceAttribute : DomainIdentifierAttribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Interface, AllowMultiple = false, 
    Inherited = true)]
public ref class AuthenticationServiceAttribute sealed : public DomainIdentifierAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = false, 
    Inherited = true)>]
type AuthenticationServiceAttribute =  
    class
        inherit DomainIdentifierAttribute
    end
public final class AuthenticationServiceAttribute extends DomainIdentifierAttribute

The AuthenticationServiceAttribute type exposes the following members.

Constructors

  Name Description
Public method AuthenticationServiceAttribute Initializes a new instance of the AuthenticationServiceAttribute class.

Top

Properties

  Name Description
Public property CodeProcessor Gets or sets the CodeProcessor used during the DomainService code generation. (Inherited from DomainIdentifierAttribute.)
Public property IsApplicationService Gets or sets a value that indicates whether the attributed type represents an application service. (Inherited from DomainIdentifierAttribute.)
Public property Name Gets the name of the domain identifier. (Inherited from DomainIdentifierAttribute.)
Public property TypeId Gets the current DomainIdentifierAttribute object. (Inherited from DomainIdentifierAttribute.)

Top

Methods

  Name Description
Public method Equals (Inherited from Attribute.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Attribute.)
Public method GetType (Inherited from Object.)
Public method IsDefaultAttribute (Inherited from Attribute.)
Public method Match (Inherited from Attribute.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method _Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.Invoke (Inherited from Attribute.)

Top

Remarks

This attribute is used to associate the authentication code processor with an implementation of the IAuthentication<T> interface.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.ServiceModel.DomainServices.Server.ApplicationServices Namespace